-
Notifications
You must be signed in to change notification settings - Fork 6
/
Lists_Example.py
62 lines (44 loc) · 1.17 KB
/
Lists_Example.py
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
from time import sleep
import webbrowser
from datetime import datetime
def program():
maths=(int(input("Please enter a number.......")))
while True:
hence=input("Would you like to multiply (by 10) or continue")
if hence == "multiply" or hence == "Multiply":
print("Okay")
ans = maths*10
ans = (str(ans))
print("Ans:" + ans)
else:
break
print("pi=3.14")
sleep(5)
sci = ['Melt' , 'Evaporate' , 'Freeze']
print(sci)
len(sci)
print("Spot the mistake........3 Seconds!")
sleep(3)
what=input("What is it!?!?!")
sci.insert(2,what)
print("The Answer........")
print("CONDENSE")
sci.append("CONDENSE")
print(sci)
for type in sci:
if type == "condense" or type == "Condense":
print("WELL DONE!!!")
else:
print("Hard Luck...")
def area(height,width):
it = height*width
print (it)
now = datetime.now()
print(now)
psswrd=input("Please enter password to continue......")
if psswrd == "QWERTY":
program()
area(3,2)
if psswrd != "QWERTY":
print("locked!")
sleep(999999)