-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcisco_math.py
More file actions
126 lines (90 loc) · 2.35 KB
/
cisco_math.py
File metadata and controls
126 lines (90 loc) · 2.35 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# jhon = 3
# mary = 2
# adam = 7
# print(f"{jhon} , {mary} , {adam}")
# total_apples = jhon + mary + adam
# print(f"Total number of apples: {total_apples}")
# print('-'*50)
# x = -1
# x = float(x)
# y = 3*(x**3)-2*(x**2)+3*(x)-1
# print(y)
# a = 6
# b = 3
# a /= 2 * b
# print(a)
# x = float(input("Enter the value for x: "))
# y = 1/(x+1/(x+1/(x+1/x)))
# print(f'{y}')
# hour = 12
# mins = 17
# dura = 59
# # expected output 13:16
# mins = mins + dura
# hour = hour + mins // 60
# mins = mins % 60
# hour = hour % 24
# print(f"{hour}:{mins}")
# x = int(input())
# y = int(input())
# x = x // y
# y = y // x
# print(y)
# user = input("Enter your input\n>")
# if user == 'Spathiphyllum':
# print("Spathiphyllum is the best plant ever!")
# elif user == 'spathiphyllum':
# print("No, I want a big Spathiphyllum!")
# else:
# print(f"Spathiphyllum! Not {user}!")
# citizen_pit = float(input("Enter your pit\n>"))
# higher_tax = 14839.02
# if citizen_pit < 0.0:
# tax = 0.0
# elif citizen_pit < 85528:
# tax = round(citizen_pit * 0.18 - 556.02, 0)
# else:
# tax = round((citizen_pit - 85528) * 0.32 + higher_tax, 0)
# print(f"The tax is: {tax} thalers.")
# year = 1580
# if year < 1582:
# print("Not within the Gregorian calendar period.")
# elif year % 4 != 0:
# print("Common Year")
# elif year % 100 != 0:
# print("Leap Year")
# elif year != 400:
# print("Common Year")
# else:
# print("Leap Year")
# secret_number = 777
# guess_number = int(input("""
# +================================+
# | Welcome to my game, muggle! |
# | Enter an integer number |
# | and guess what number I've |
# | picked for you. |
# | So, what is the secret number? |
# +================================+
# """))
# while secret_number != guess_number:
# print("""
# +================================+
# | Ha ha! You're stuck in my loop.|
# +================================+
# """)
# guess_number = int(input("""
# +================================+
# | Try to guess it again! |
# +================================+
# """))
# print("""
# +======================================+
# | Well done, muggle! You are free now! |
# +======================================+
# """)
""" import time
for number in range(1, 6):
print(f"{number} Mississippi.")
time.sleep(1)
print("Ready or not, here i come!") """