-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathclass13.py
More file actions
45 lines (35 loc) · 899 Bytes
/
Copy pathclass13.py
File metadata and controls
45 lines (35 loc) · 899 Bytes
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
# # n = int(input("Enter A number: "))
# # for i in range(1,n+1):
# # if i%7 == 0:
# # print(i)
# # Based on three given integer numbers,
# # write a Python program that prints "All numbers are equal" if all three numbers are equal,
# # "All numbers are different" if all three numbers are different
# # and "Neither all are equal or different" otherwise.
# # x = 78
# # y = 90
# # z = 92
# # p = 91
# # if x == y and y==z and p == x :
# # print("All numbers are equal")
# # # break
# # # continue
# # # pass
# # # x = -7
# # # if x<0:
# # # pass
# # # else:
# # # print("O+")
# # for i in range(6):
# # # if i == 3:
# # # continue
# # print(i)
# # else:
# # print("Done")
# numbers = [2,3,4]
# squared_numbers = [x**2 for x in numbers] # Squaring each number
# print(squared_numbers)
a=[2,3,4]
for i in range(3):
a[i] = a[i]**2
print(a)