-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
43 lines (34 loc) · 1.03 KB
/
main.py
File metadata and controls
43 lines (34 loc) · 1.03 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
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
# print('Hello Nishit Dhakar - Welcome to world of Python')
# ch = input("enter char")[0]
# print (ch)
# result = eval (input("Enter a expression - "))
# print (result)
# label .myLabel
counter = 0
lst = [10,20,30,"nishit",3.4,55]
for counter in lst:
print (counter)
for counter in range(20,10,-1):
print (counter)
alpha = 5
while alpha>=1:
print ("Hello" , str(alpha), end=" ")
alpha=alpha-1
print()
a,b = int(input("Enter value of a: ")),int(input("Enter value of b: "))
if a==b:
#a = a+b
#b = a-b
#a = a-b
#a = a^b
#b = a^b
#a = a^b
print('You have entered same values, please enter different values')
#a, b = int(input("Enter value of a")), int(input("Enter value of b"))
# goto .myLabel;
else:
a,b = b,a
print("new value of a is " + str(a))
print("new value of b is "+ str(b))