Professional Documents
Culture Documents
Salisa Stamp - Python Sheet
Salisa Stamp - Python Sheet
Operators using a while loop to print each item in list Definition program code
if ... : if statement used as a condition for letters in word: print ("Guessing Game")
import ... import a codeor something like theresult = palindrome(word) print("Sorry, wrong choice!
formula in python print("This word ")
Vocabulary (cont) number to binary code Quit word (def code) (cont)
floating number with a decimal point user_number = "" def createList (quitword):
number while user_number != "0": mylist = [ ] #create an empty
integer number with no decimal point user_number = input ( "enter a list
syntax grammar or rules on number = int(user_number) #get the item from the user