Skip to content

Commit 2fe0960

Browse files
committed
Final Project(Python_Decoded2.0) submitted
1 parent 8de1d79 commit 2fe0960

File tree

4 files changed

+131
-0
lines changed

4 files changed

+131
-0
lines changed
Binary file not shown.

final_project_python decode.KS/art.py

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
logo1='''
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+
logo='''
32+
██╗░░░░░███████╗████████╗██╗░██████╗  ██╗░░██╗███╗░░██╗░█████╗░░██╗░░░░░░░██╗
33+
██║░░░░░██╔════╝╚══██╔══╝╚█║██╔════╝  ██║░██╔╝████╗░██║██╔══██╗░██║░░██╗░░██║
34+
██║░░░░░█████╗░░░░░██║░░░░╚╝╚█████╗░  █████═╝░██╔██╗██║██║░░██║░╚██╗████╗██╔╝
35+
██║░░░░░██╔══╝░░░░░██║░░░░░░░╚═══██╗  ██╔═██╗░██║╚████║██║░░██║░░████╔═████║░
36+
███████╗███████╗░░░██║░░░░░░██████╔╝  ██║░╚██╗██║░╚███║╚█████╔╝░░╚██╔╝░╚██╔╝░
37+
╚══════╝╚══════╝░░░╚═╝░░░░░░╚═════╝░  ╚═╝░░╚═╝╚═╝░░╚══╝░╚════╝░░░░╚═╝░░░╚═╝░░
38+
39+
░█████╗░██████╗░███████╗██████╗░░█████╗░████████╗░█████╗░██████╗░
40+
██╔══██╗██╔══██╗██╔════╝██╔══██╗██╔══██╗╚══██╔══╝██╔══██╗██╔══██╗
41+
██║░░██║██████╔╝█████╗░░██████╔╝███████║░░░██║░░░██║░░██║██████╔╝
42+
██║░░██║██╔═══╝░██╔══╝░░██╔══██╗██╔══██║░░░██║░░░██║░░██║██╔══██╗
43+
╚█████╔╝██║░░░░░███████╗██║░░██║██║░░██║░░░██║░░░╚█████╔╝██║░░██║
44+
░╚════╝░╚═╝░░░░░╚══════╝╚═╝░░╚═╝╚═╝░░╚═╝░░░╚═╝░░░░╚════╝░╚═╝░░╚═╝'''
45+
46+
47+
48+
logo2='''
49+
▀█▀ █░█ ▄▀█ █▄░█ █▄▀   █▄█ █▀█ █░█
50+
░█░ █▀█ █▀█ █░▀█ █░█   ░█░ █▄█ █▄█'''
+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
import math
2+
3+
4+
logo='''
5+
██╗░░░░░███████╗████████╗██╗░██████╗  ██╗░░██╗███╗░░██╗░█████╗░░██╗░░░░░░░██╗
6+
██║░░░░░██╔════╝╚══██╔══╝╚█║██╔════╝  ██║░██╔╝████╗░██║██╔══██╗░██║░░██╗░░██║
7+
██║░░░░░█████╗░░░░░██║░░░░╚╝╚█████╗░  █████═╝░██╔██╗██║██║░░██║░╚██╗████╗██╔╝
8+
██║░░░░░██╔══╝░░░░░██║░░░░░░░╚═══██╗  ██╔═██╗░██║╚████║██║░░██║░░████╔═████║░
9+
███████╗███████╗░░░██║░░░░░░██████╔╝  ██║░╚██╗██║░╚███║╚█████╔╝░░╚██╔╝░╚██╔╝░
10+
╚══════╝╚══════╝░░░╚═╝░░░░░░╚═════╝░  ╚═╝░░╚═╝╚═╝░░╚══╝░╚════╝░░░░╚═╝░░░╚═╝░░
11+
12+
░█████╗░██████╗░███████╗██████╗░░█████╗░████████╗░█████╗░██████╗░
13+
██╔══██╗██╔══██╗██╔════╝██╔══██╗██╔══██╗╚══██╔══╝██╔══██╗██╔══██╗
14+
██║░░██║██████╔╝█████╗░░██████╔╝███████║░░░██║░░░██║░░██║██████╔╝
15+
██║░░██║██╔═══╝░██╔══╝░░██╔══██╗██╔══██║░░░██║░░░██║░░██║██╔══██╗
16+
╚█████╔╝██║░░░░░███████╗██║░░██║██║░░██║░░░██║░░░╚█████╔╝██║░░██║
17+
░╚════╝░╚═╝░░░░░╚══════╝╚═╝░░╚═╝╚═╝░░╚═╝░░░╚═╝░░░░╚════╝░╚═╝░░╚═╝'''
18+
19+
20+
21+
logo2='''
22+
▀█▀ █░█ ▄▀█ █▄░█ █▄▀   █▄█ █▀█ █░█
23+
░█░ █▀█ █▀█ █░▀█ █░█   ░█░ █▄█ █▄█'''
24+
25+
26+
27+
#---------------------CODE STARTS HERE---------------------------!!!!!
28+
29+
30+
print(logo)
31+
print(".................................WELCOME USER....................................")
32+
33+
def func(str,a,b):
34+
if str=="Addition":
35+
return a+b
36+
elif str=="Substraction":
37+
no=a-b
38+
return abs(no)
39+
elif str=="Division":
40+
return a/b
41+
elif str=="Multiplication":
42+
return a*b
43+
elif str=="Exponent":
44+
print(f'By default {a} is taken as base and {b} is taken to be exponent')
45+
return a**b
46+
elif str=="Logarithm":
47+
print(f'By default {a} is taken as base and {b} is taken to be argument')
48+
return math.log(b,a)
49+
50+
51+
52+
game=True
53+
while game:
54+
a,b=map(int,input("Enter two nos:").split())
55+
print("Operations u can choose \n 1.Addition\n2.Substraction\n3.Division\n4.Multiplication\n5.Exponent\n6.Logarithm\n...exit")
56+
str=input("\nOPERATION TO BE PERFORM:")
57+
if(str=="exit"):
58+
game=False
59+
print("Oaky, You can leave now")
60+
else:
61+
print(func(str,a,b))
62+
63+
64+
print(logo2)
65+
66+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
elif str=="Exponent":
3+
print(f'By default {a} is taken as base and {b} is taken to be exponent')
4+
return a**b
5+
elif str=="Logarithm":
6+
return math.log(b,a)
7+
8+
9+
10+
11+
a,b=input("Enter two nos:").split(",",2)
12+
str=input("OPERATION TO BE PERFORM:")
13+
print(func(str,a,b))
14+
15+

0 commit comments

Comments
 (0)