Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Very basic code example
- print("Hello world!")
- print("The print function displays text!")
- print("Crikey!")
- x=input("This will let you type and the input will be saved under a variable called X!")
- print("You can even print variables like this:")
- print(x)
- print("Horray!")
- print("You can branch off code using 'if'")
- if x==x:
- print("This will always print because X is X")
- elif x!=x:
- print("This will only print if X isnt equal to X")
- print("Elif is a combination of else and if, it allows you to make more then 1 branch")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement