-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpractice_.py
More file actions
40 lines (29 loc) · 764 Bytes
/
practice_.py
File metadata and controls
40 lines (29 loc) · 764 Bytes
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
# num = int(input("Enter The Number\n"))
# for i in range(1, 11):
# # print(str(num) + " x " + str(i) + " = " + str(i*num))
# print(f"{num} x {i} = {num*i}")
# # multiplication table calculator [efficient]
# n = input("What's Your n?\n")
# # n = ['akshat', 'avi', 'aryaman', 'aadesh', 'shrishti', 'sara', 'saanvi' ] # names' list
# # for n in n:
# if n.startswith("a"):
# print(f"Good Morning {n} sir")
# elif n.startswith("s"):
# print(f"Good Morning {n} ma'am")
# else:
# print("Greetings")
# greeting system #2
# n = 3
# for i in range(3):
# print(" " * (n-i-1), end="")
# print("*" * (2*i-1), end="")
# print(" " * (n-i-1))
# # prints:
# # *
# # ***
print('''
* * *
* *
* *
* *
* * *''')