-
Notifications
You must be signed in to change notification settings - Fork 1
/
if-else.py
76 lines (60 loc) · 1.12 KB
/
if-else.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#if x= 1 then print("ansh is good boy")
#or if x is not equal to 1,
#then print("manish is a bad boy")
''' operators
arithematic operator
+
-
*
/
**
//
%
comparision operator
==
<
>
<=
>=
!=
assignment operator
=
+= x+=1 ==> x= x+1
-= x-=1 ==> x = x-1
*= x*=1 ==> x = x*1
/= x/=1 ==> x=x/1
'''
'''x = int(input("enter number"))
if(x==1):
print("ansh is a good boy")
else:
print("manish is a bad boy")'''
'''x="ansh "
if x=="ansh ":
print(x*3)
else:
print("not equal, so user is good enough")'''
'''x=input("enter your name")
if x=="ansh":
print("user is ansh singhal")
elif x=="manish":
print("ansh has entered name manish")
else:
print("the name is not in database")'''
'''x= int(input("enter number" ))
if x==1:
print("it's sunday funday")
elif x==2:
print("it's monday")
elif x==3:
print("it's tuesday")
elif x==4:
print("it's wednesday")
elif x==5:
print("it's thursday")
elif x==6:
print("it's friday")
elif x==7:
print("it's saturday")
else:
print("enter valid number")'''