Skip to content

Instantly share code, notes, and snippets.

@TheCoreMan
Created March 10, 2019 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheCoreMan/485a828344037ece338418f0b67a680c to your computer and use it in GitHub Desktop.
Save TheCoreMan/485a828344037ece338418f0b67a680c to your computer and use it in GitHub Desktop.
Cute Keychains for random internet stranger
# THIS IS IN A PROGRAMMING LANGUAGE CALLED GOLANG
package main
import "fmt"
func main() {
fmt.Println("Bound 2")
}
# THIS IS IN PYTHON
# Simplest
bound = 2
# A few "print" options, which is how you print
print("Bound 2")
print("Bound {0}".format(2))
# And a few more complicated ones
# Python dictionary
{"bound": 2}
# For loop
bound = [0,0,0]
for i in range(3):
if i == 2:
bound[i] = True
else:
bound[i] = False
print(bound)
# import
import bound
print(bound.2() + "you")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment