-
Notifications
You must be signed in to change notification settings - Fork 0
/
class-20.6.19.py
110 lines (93 loc) · 1.82 KB
/
class-20.6.19.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
# ##import math
# for num in range(3,100):
# for num1 in range(2,num/2):
# if(num%num1==0):
# count+=1
# break;
# print(abs(2.56))
##
'''
def sum(a,b):
return(a+b)
x=int(input())
y=int(input())
print(sum(x,y))
class Student:
def __init__(self,num1,num2):
self.num1 = num1
self.num2 = num2
def sum(self):
print(self.num1+self.num2)
if __name__ == "__main__":
s1=Student(5,6)
s2=Student(4,9)
print(s1.sum,s2.sum)
n=10
d=dict()
for i in range(1,n+1):
d[i+1]=i*i
print(d)
for i in range(1,11):
print(i)
'''
'''
num=input()
if(num==(num[::-1])):
print("Palindrom")
else:
print("Not Palindrom")
'''
'''
value =[]
for i in range(100,250):
s=str(i)
if(int(s[0])%2==0 & int(s[1])%2==0 & int(s[2])%2==0):
value.append(s)
print(' '.join(value))
'''
#print(value)
'''
name,age,height=[],[],[]
num =int(input("Enter the number of students:"))
for i in range(num):
name.append(input("Enter the name:"))
age.append(int(input("Enter the age:")))
height.append(int(input("Enter the height:")))
name.sort()
age.sort()
height.sort(reverse='TRUE')
print('\n',join(tuple(name),tuple(age),tuple(height)))
'''
'''
string = input()
word =[]
word = string.split(" ")
#print(word)
for i in word:
# str1= str(i)
# str1.upper()
i.append(i)
print(i)
'''
'''
def factorial(n):
if(n<=1):
return(1)
else:
return(n*factorial(n-1))
print(factorial(5))
'''
'''
def primeDectect(num):
for i in range(2,int(num/2)):
if(num%i==0):
flag=1
break
else:
flag=0
if(flag==0):
print("prime")
else:
print("not prime")
primeDectect(13)
'''