-
Notifications
You must be signed in to change notification settings - Fork 0
/
practice.py
426 lines (363 loc) · 7.81 KB
/
practice.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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
# year=2016
# name="nuvgurukul"
# name2=str(year)
# print(name+name2)
# a=12
# b="neha"
# x=str(a)
# print(b+x)
# x="divya"
# y=1992005
# a=str(y)
# print(a+X)
# x=int(input("enter the number"))
# if x%5==0:
# print("hello")
# else:
# print("by")
# x=int(input("enter he number"))
# if x%7==0:
# print("divisible")
# else:
# print("not divisible")
# age=int(input("enter the age"))
# if age>18:
# print("you can give vote in election")
# else:
# print("you can not vote in electtion")
# if 10==10:
# print("nav")
# a=5
# b="nili"
# c=str(a)
# print(c+b)
# a=2.3
# b=("divya")
# c=str(a)
# print(type(c))
# print(c+b)
# a="divya"
# a="deshmukh"
# print(a,a)
# a=int(input("enter the number"))
# if a<0:
# print(-a)
# else:
# print(a)
# a="12 hour"
# b=int(a)
# print(type(b))
# num1=int(input("enter the number"))
# num2=int(input("enter the number"))
# num3=int(input("enter the number"))
# if num1>num2 and num1>num3:
# print("num1 is greater")
# if num2>num1 and num2>num3:
# print("num2 is greater")
# if num3>num1 and num3>num2:
# print("num3 is greater")
# else:
# print("not greater")
# num1=int(input("enter the number"))
# if num1>=0:
# print("num1 is greater")
# num2=int(input("enter the number"))
# if num2>num1 :
# print("num2 is greater")
# num3=int(input("enter the number"))
# if num3>num1 and num3>num2:
# print("num3 is greater")
# else:
# print("num3 is not greater")
# else:
# print("num2 is not greater")
# else:
# print("num3 is not greater")
# day=input("enter the day:-")
# if day=="monday":
# print("ok")
# disco_per=input("take disco disco permission:-")
# if disco_per=="ok":
# print("imform the team member")
# team_member=input("take team member permission:-")
# if team_member=="yes":
# print("ok")
# place=input("enter the place:-")
# if place=="hospital":
# print("you can go")
# going_time=int(input("enter the going time:-"))
# if going_time==10:
# print("ok")
# coming_time=int(input("enter the coming time:-"))
# if coming_time==7:
# print("yes")
# prefertion=input("enter the prefertion:-")
# if prefertion=="mask" and "sanitizer":
# print("you can go")
# else:
# print("you cant go")
# else:
# print("no")
# else:
# print("not ok")
# else:
# print("you cant go")
# else:
# print("is not ok")
# else:
# print("dont ask")
# else:
# print
# a=12
# b="rani"
# c=12.34
# a2=str(a)
# a3=int(c)
# a4=str(a3)
# print(b+(a2+a4)+a2+a4)
# a="20/"
# b="07/"
# c="2020"
# print(a+b+c)
# a="12"
# b="24"
# print(a+b)
# a="divya_"
# b="deshmukh"
# print(a+b)
# divya="19/"
# b="09/"
# c="2005"
# print(divya+b+c)
# a="divya"
# b="deshmukh"
# print(a+b)
# a="divya "
# b="deshmukh"
# print(a+b)
# a="divya"
# b="deshmukh"
# print(a+"b")b
# x=int(input("enter the number"))
# y=int(input("enter the number"))
# if x>y:
# print("x is greater")
# elif y>x:
# print("y is greater")
# else:
# print("invalid")
# a=int(input("enter the number"))
# b=int(input("enter the number"))
# sum=(a+b)
# if sum>50:
# print("num")
# else:
# print("invalid")
# day1=input("enter the day")
# if day1=="monday":
# print("roti sabji")
# day2=input("enter the day")
# if day2=="tuesday":
# print("pav bhaji")
# else:
# print("invalid")
# else:
# print("error")
# a="i love my india"
# if a==10:
# print("yes")
# else:
# print("no")
# num=int(input("enter the number"))
# if num<10:
# print("less thsn 10")
# elif num>10 and num<20:
# print("less than 20")
# else:
# print("greater than 20")
# varx=int(input("enter the number"))
# vary=int(input("enter the number"))
# if varx%vary==0:
# print("divisible")
# else:
# print("not divisible")
# vowel=input("enter the letter:-")
# if vowel=="a":
# print("vowel")
# elif vowel=="e":
# print("vowel")
# elif vowel=="i":
# print("vowel")
# elif vowel=="o":
# print("vowel")
# elif vowel=="u":
# print("vowel")
# else:
# print("consonents")
# num1=int(input("enter the number"))
# num2=int(input("enter the number"))
# if num1<num2:
# print("num1 is lower number")
# elif num1>num2:
# print("num2 is lower number")
# else:
# print("invalid")
# num=int(input("enter the number"))
# if num%2==0 and num%3==0:
# print("yes")
# else:
# print("no")
# num1=int(input("enter the first number"))
# num2=int(input("enter the second number"))
# num3=int(input("enter the third number"))
# if num1>num2 and num1>num3:
# print("num1 is greater")
# elif num2>num1 and num2>num3:
# print("num2 is greater")
# elif num3>num1 and num3>num2:
# print("num3 is greater")
# else:
# print("not greater")
# age1=int(input("enter the 1st person age"))
# age2=int(input("enter the 2nd person age"))
# age3=int(input("enter the 3rd person age"))
# age4=int(input("enter the 4th person age"))
# if age1>age2 and age1>age3 and age1>age4:
# print("age1 person is oldest")
# elif age2>age1 and age2>age3 and age2>age4:
# print("age2 person is oldest")
# elif age3>age1 and age3>age2 and age3>age4:
# print("age3 person is oldest")
# elif age4>age1 and age4>age2 and age4>age3:
# print("age4 person is oldest")
# else:
# print("invalid")
# age1=int(input("enter the 1st person age"))
# age2=int(input("enter the 2nd person age"))
# age3=int(input("enter the 3rd person age"))
# age4=int(input("enter the 4th person age"))
# if age1<age2 and age1<age3 and age1<age4:
# print("age1 person is youngest")
# elif age2<age1 and age2<age3 and age2<age4:
# print("age2 person is youngest")
# elif age3<age1 and age3<age2 and age3<age4:
# print("age3 person is youngest")
# elif age4<age1 and age4<age2 and age4<age3:
# print("age4 person is youngest")
# else:
# print("invalid")
# counter=0
# while counter<5:
# print("navgurukul")
# counter=counter+1
# a="navgurukul is like india"
# print("is" is (a))
# a=30
# b=10
# c="17"
# d=a+10%(b)//2/10
# print(d)
# a="neha"
# b=40
# c="4.2"
# d=3+1j
# e="4+1j"
# # f=str(b)
# g=float(c)
# h=int(g)
# i=complex(e)
# print(a+h+d+i)
# a=5
# b=4
# print(a-b)
# x="shruti "
# y="navhat"
# print(x+y)
# a="neha"
# b=40
# c="4.2"
# d=3+1j
# e="4+1j"
# f=str(b)
# g=str(d)
# print(a+f+g+e)
# a="neha"
# # h=int(a)
# b=40
# # x=str(b)
# c="4.2"
# y=float(c)
# z=int(y)
# d=3+1j
# e="4+1j"
# w=complex(e)
# print(a+b+z+(d+w))
# num1=int(input("enter the 1st no.:-"))
# num2=int(input("enter the 2nd no.:-"))
# num3=int(input("enter the 3rd no.:-"))
# if num1>num2 and num1>num3:
# print("num1 is geater",num1)
# if num2>num1:
# print("num2 is second greater",num2)
# else:
# print("num3 is second greater",num3)
# elif num2>num1 and num2>num3:
# print("num2 is greater",num2)
# if num3>num2:
# print("num3 is second greater",num3)
# else:
# print("num1 is second greater",num1)
# elif num3>num1 and num3>num2:
# print("num3 is greater",num3)
# if num1>num3:
# print("num1 is second greater",num1)
# else:
# print("num2 is second greater",num2)
# else:
# print("invalid")
# basic_salary=int(input("enter the salary"))
# hra=20
# da=80
# if basic_salary<=10000:
# print(basic_salary+hra+da)
# elif basic_salary<=20000:
# hra=25
# da=90
# print(basic_salary+hra+da)
# elif basic_salary>20000:
# hra=30
# da=95
# print(basic_salary+hra+da)
# else:
# print("invalid")
# a=2**3
# a=2**3**2
# print(a)
# a=bool("")
# b=bool(" ")
# print(a+b)
# x=20
# y=5
# z=x+True+y-False
# print(z)
# a="divya"
# b="123"
# print(a+b)
# a="divya"
# b="_deshmukh"
# print(a+b)
# a="divya"
# b="3"
# print(a+b)
# a="12.25"
# b=12
# c=float(a)
# print(c+b)
# a="navgurukul"
# b="2016"
# print(a+b)
# num=int(input("enter the number"))
# if num%2==0 and num%7==0:
# print("done")
# else:
# print("no")