Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Set your secret number to 3.3312 to grade your code
- # Your code here...
- secret_num = float(3.3312)
- guess = 0
- while secret_num != guess:
- guess = float(input("Guess the magic number "))
- if guess == secret_num:
- print "Correct!"
- elif guess >= secret_num:
- print "Too high!"
- elif guess <= secret_num:
- print "Too low!"
- else:
- print "Try again!"
- Type = 0
- Topic = ""
- for i in range(3):
- Category = input("Enter a category: ")
- for j in range(3):
- Topic += input("Enter a topic: ")
- Topic = Topic + " "
- Result = Category + ": "+ Topic
- print Result
- Category = ""
- Topic = ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement