1
+ # a="New"
2
+ # if a==12:
3
+ # print("Equals to 12")
4
+ # print("End Programe")
5
+ # elif a=="Rosee":
6
+ # print("True")
7
+ # else:
8
+ # print("FAlse")
9
+ # marks=12
10
+ # distinction=3
11
+ # if marks-distinction>0:
12
+ # print("Distinction Marks")
13
+ # elif marks-distinction==0:
14
+ # print("Zero Distinction Marks Obtained")
15
+ # else:
16
+ # print("Distinction marks not obtained")
17
+ # if marks >distinction:
18
+ # print("Distinction Marks Obatained")
19
+ # else:
20
+ # print("No Distinction Maks Obatined")
21
+ # price=1200
22
+ # BAnk_Amount=1900000000
23
+ # if BAnk_Amount>price:
24
+ # print("I can Buy the Shirt")
25
+ # else:
26
+ # print("I Can't")
27
+ # income=21000000
28
+ # incomeTax=0
29
+ # if income<=500000:
30
+ # print("Not Tax")
31
+ # if (income>500000) and (income<1000000):
32
+ # incomeTax=25000+(income-incomeTax)*2
33
+ # if (income>1000000):
34
+ # incomeTax=75000+(income-10000000)*3
35
+ # print(incomeTax)
36
+ # check=int(input("Enter:"))
37
+ # if check.isalpha():
38
+ # print(check,"Alphabet")
39
+ # else:
40
+ # check=int()
41
+ # print(check,"Numeric")
42
+ # if check>0:
43
+ # print("Positive")
44
+ # if check==0:
45
+ # print("Zero")
46
+ # else:
47
+ # print("Negative")
48
+ # if check>0:
49
+ # print("positive")
50
+ # elif check<0:
51
+ # print("Negative")
52
+ # else:
53
+ # print("zerro")
54
+ # year=int(input("Enter Year:"))
55
+ # if year%4==0:
56
+ # if year%100==0:
57
+ # if year%400==0:
58
+ # print("Leap year")
59
+ # else:
60
+ # print("Not a Leap year")
61
+ # else:
62
+ # print("Leap year")
63
+ # else:
64
+ # print("Not a Leap year")
65
+ # num=int(input("num:"))
66
+ # i=1
67
+ # sum=0
68
+ # while(i<=num):
69
+ # sum+=i
70
+ # i+=1
71
+ # print(sum,"sum")
72
+ # list=[]
73
+ # x=int(input("num:"))
74
+ # y=12
75
+ # if (y==0)or (x==0):
76
+ # print("it's Zero")
77
+ # else:
78
+ # i=1
79
+ # if x<y:
80
+ # while(i<=x):
81
+ # if x%i==0 and y%i==0:
82
+ # list.append(i)
83
+ # i+=1
84
+ # elif x>y:
85
+ # while(i<=y):
86
+ # if x%i==0 and y%i==0:
87
+ # list.append(i)
88
+ # i+=1
89
+ # print(max(list))
90
+ # num=int(input("num:"))
91
+ # a=0
92
+ # b=1
93
+ # c=a
94
+ # i=0
95
+ # sum=0
96
+ # while(c<num):
97
+ # print(c)
98
+ # i+=1
99
+ # if i%2!=0:
100
+ # sum+=c
101
+ # a=b
102
+ # b=c
103
+ # c=a+b
104
+ # print("sum",c)
105
+ # print(sum)
106
+ # Fibnocci series with even Question
107
+ # multiplication table
108
+ # dict={
109
+ # "state":"Capital"
110
+ # }
111
+ # capital=input("capital:")
112
+ # dict["state"]=capital
113
+ # state=input("state:")
114
+ # print(dict)
115
+
116
+ # num=int(input("num: "))
117
+ # a=0
118
+ # b=1
119
+ # c=a
120
+ # sum=0
121
+ # while(c<=num):
122
+ # print(c)
123
+ # c+=1
124
+ # if c%2!=0:
125
+ # sum=sum+c
126
+ # a=b
127
+ # b=c
128
+ # c=a+b
129
+ # print(c,":sum")
130
+ # print(sum)
131
+
132
+
133
+ # dic={
134
+ # "name":"New",
135
+ # "class":"Btech"
136
+ # }
137
+ # for key in dic.values():
138
+ # print(f"its {key}")
139
+
140
+
141
+ # for key,value in dic.items():
142
+ # print(f"{key} = {value}")
143
+ # print(dic.items())
144
+
145
+ # dic={
146
+ # "state":"capital",
147
+ # "city":'famous'
148
+ # }
149
+ # dic["state"]=input("Entr state: ")
150
+
151
+ # A='python'
152
+ # for i in A:
153
+ # print(i)
154
+
155
+ # x=int(input("x: "))
156
+ # y=int(input("y: "))
157
+ # for i in range(1,x):
158
+ # if i<20:
159
+ # print(f"{y} * {i} = {y*i}")
160
+ # elif i>=20: #dictionary
161
+ #matrix transpose
162
+ #decimal increasement
163
+ #sum of all number
164
+ # break
165
+ # else:
166
+ # print(f"{y} * {i} = 0")
167
+ # list=[]
168
+ # num=int(input("num:"))
169
+ # i=1
170
+ # while(i<=num):
171
+ # if num%i==0:
172
+ # list.append(i)
173
+ # i+=1
174
+ # print(list)
175
+
176
+ # t=input("enter:")
177
+ # a=t.count("(")
178
+ # b=t.count(")")
179
+ # if b==a:
180
+ # print("Valid and depth",a)
181
+ # elif b!=a:
182
+ # if a>b:
183
+ # print("not valid and errors",a-b)
184
+ # elif b>a:
185
+ # print("not valid and errors",b-a)
186
+
187
+ # a=12
188
+ # for i in range(1,a):
189
+ # # if i%2==0:
190
+ # print(i)
191
+ # # continue
192
+ # if i%5==0:
193
+ # break
194
+ # s=0
195
+ # for i in range(1,23):
196
+ # if i%2==0:
197
+ # s+=i
198
+ # elif i%3==0:
199
+ # pass
200
+ # print(i,s)
201
+
202
+ # num=int(input("num: "))
203
+ # a=0
204
+ # b=1
205
+ # c=a
206
+ # while(c<=num):
207
+ # print(c)
208
+ # a=b
209
+ # b=c
210
+ # c=a+b
211
+ # list=[]
212
+ # x=int(input("x: "))
213
+ # y=int(input("y: "))
214
+ # for i in range(x,y):
215
+ # for a in range(2,i):
216
+ # if i%a==0:
217
+ # break
218
+ # else:
219
+ # print(i)
220
+ # ch=input("ch: ")
221
+ # if ch.isalpha():
222
+ # if ch in "aeiou":
223
+ # print("vowel")
224
+ # else:
225
+ # print("consonent")
226
+ # else:
227
+ # print("not an alphabet")
228
+
229
+ # num=int(input("num: "))
230
+ # temp=num
231
+ # l=len(str(num))
232
+ # sum=0
233
+ # while(temp):
234
+ # temp1=temp%10
235
+ # temp2=temp1**l
236
+ # sum=temp2+sum
237
+ # temp=temp//10
238
+ # if sum==num:
239
+ # print("Amstrong Number")
240
+ # else:
241
+ # print("not an Amastrong Number")
242
+
243
+
244
+ # num=int(input("num: "))
245
+ # temp=num
246
+ # sum=0
247
+ # length=len(str(num))
248
+ # while(temp):
249
+ # a=temp%10
250
+ # b=a**length
251
+ # sum+=b
252
+ # temp=temp//10
253
+ # if num==sum:
254
+ # print("Amastrong Number")
255
+ # else:
256
+ # print("Not an Amastrong Number")
257
+ # num=int(input("num: "))
258
+ # temp=num
259
+ # sum=0
260
+ # while temp:
261
+ # a=temp%10
262
+ # sum+=a
263
+ # temp//10
264
+ # if num==sum:
265
+ # print("Done")
266
+ # else:
267
+ # print("Nothing")
268
+ # num=input("num: ")
269
+ # sum=0
270
+ # for i in range(1,len(num)):
271
+ # sum=int(num[i])+sum
272
+ # print(sum)
273
+
274
+ # num=int(input('num: '))
275
+ # list=[]
276
+ # temp=num
277
+ # while(temp):
278
+ # a=temp%10
279
+ # list.append(a)
280
+ # temp//10
281
+ # print(sum(list))
282
+ # def add(a=3,b=4):
283
+ # print(a+b)
284
+ # # add(b=8,4)
285
+ # add()
286
+ # def avg(**numbers):# it will be tuple now
287
+ # print(type(numbers))
288
+ # sum=0
289
+ # for i in numbers:
290
+ # sum+=i
291
+ # print(sum/len(numbers))
292
+ # avg(10,10)
293
+
294
+ # def add(*args): #mainly used for loops
295
+ # print(list(args))
296
+ # sum1=[]
297
+ # for i in args:
298
+ # sum1.append(i)
299
+ # print(sum1)
300
+ # a=209,13098,"90"
301
+ # add(a)
302
+ # def add(*num):
303
+ # num=list(num)
304
+ # num_power1=num[0]
305
+ # return num_power1
306
+ # a=input("Enter: ")
307
+ # b=add(a)
308
+ # print(b)
309
+ # def special(**num): # mainly used for dectionaries
310
+ # print(type(num))
311
+ # for key,value in num.items():
312
+ # print(f"{key} is {value}")
313
+ # n={"num":"1","num1":"2"}
314
+ # special(n)
315
+ # def sq(a):
316
+ # return a*a
317
+ # num=[2,3,4,5]
318
+ # square=list(map(int,num))
319
+ # print(square)
320
+ # b=[2,34,5]
321
+ # def new(a):
322
+ # return a>2
323
+ # print(list(filter(new,b)))
324
+ # for functools import reduce
325
+
326
+ # num=[2,3,4,5]
327
+ # new=list(reduce(lambda x,y:x+y,num))
328
+ # # print(new)
329
+ # def fun1(name="Padma",age="12"):
330
+ # print(name,"is",age,"years old")
331
+ # fun1(name="Aditya",age="17")
332
+ # fun1()
333
+ # tax=lambda salary:salary*20/100
334
+ # salary=int(input("salary: "))
335
+ # print("Total tax you have to pay",tax(salary))
336
+ # doublenum=lambda x:x*2
337
+ # a=int(input("a: "))
338
+ # result=doublenum(a)
339
+ # print(result)
340
+ # def sq(x):
341
+ # return x%2==0
342
+ # list1=[1,2,4,5]
343
+ # new=list(filter(lambda x:x%2==0 , list1))
344
+ # print(new)
345
+
346
+ # list1=[2,3,7,9]
347
+ # list2=[2,3,7,9]
348
+
349
+ # new=list(filter(lambda x:x in list1,list2))
350
+ # print(new)
351
+ # new1=[x for x in list1 if list1 in list2]
352
+ # print(new1)
353
+
354
+ # globvar="Hello Everyone"
355
+ # def test1():
356
+ # global globvar
357
+ # globvar="Good Morning"
358
+ # def test2():
359
+ # globvar="Good After Noon"
360
+ # print(globvar)
361
+ # test1()
362
+ # test2()
363
+ # print(globvar)
364
+ # num=int(input("num: ")) #function composition
365
+ # def square(x):
366
+ # return x*x
367
+ # def double(num):
368
+ # return num*2
369
+ # print(square(double(num)))
370
+ # num=int(input("input: "))
371
+ # def factorial(num):
372
+ # if num==0:
373
+ # return 0
374
+ # elif num==1:
375
+ # return 1
376
+ # else:
377
+ # return num*factorial(num-1)
378
+ # print(factorial(num))
379
+ # def checkNegativeNumber(num):
380
+ # if num>=0:
381
+ # print("negative")
382
+ # else:
383
+ # print("positive")
384
+ # import CheckNegative
385
+ # x=int(input("x: "))
386
+ # CheckNegative.CheckNegativeNumber(x)
0 commit comments