-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboolean_operators.pybak
45 lines (41 loc) · 1.12 KB
/
boolean_operators.pybak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
def mystery():
guessStr = raw_input("Enter an integer: ")
guess = int(guessStr)
if guess == 0:
print "it's zero"
elif guess > 0 and guess < 5:
print "low"
elif guess > 10:
print "huge"
def mystery2(): # BAAAAD <------
guessStr = raw_input("Enter an integer that is >= 0: ")
guess = int(guessStr)
if guess == 0:
print "it's zero"
elif guess > 0 and guess <= 5:
print "low"
elif guess > 10:
print "huge"
elif guess > 5 and guess <= 10:
print "middle"
def mystery3(): # GOOOD<------
guessStr = raw_input("Enter an integer that is >= 0: ")
guess = int(guessStr)
if guess == 0:
print "it's zero"
elif guess <= 5:
print "low"
elif guess <= 10:
print "middle"
else:
print "huge"
def wtf():
number = int(raw_input(" Enter an integer: "))
if number != 3:
print "not 3"
else:
number2 = int(raw_input(" Enter another integer: "))
if number2 == 7 or number2 == 0:
print("Jackpot!")
else:
print("loser?")