forked from Ronit049/python-Learning-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path04_practice_py.py
More file actions
40 lines (40 loc) · 1.61 KB
/
04_practice_py.py
File metadata and controls
40 lines (40 loc) · 1.61 KB
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
#----------------------------------------------------------------------------
# fruit=[""]
# f1 = input("Enter the name of first fruit : ")
# fruit.append(f1)
# f2 = input("Enter the name of Second fruit : ")
# fruit.append(f2)
# f3 = input("Enter the name of Third fruit : ")
# fruit.append(f3)
# f4 = input("Enter the name of Fourth fruit : ")
# fruit.append(f4)
# f5= input("Enter the name of fifth fruit : ")
# fruit.append(f5)
# f6 = input("Enter the name of Sixth fruit : ")
# fruit.append(f6)
# f7 = input("Enter the name of Seventh fruit : ")
# fruit.append(f7)
# print(fruit)
#----------------------------------------------------------------------------
# score = []
# s1 = int(input("ENTER THE SCORE OF THE 1st STUDENT : "))
# score.append(s1)
# s2 = int(input("ENTER THE SCORE OF THE 2nd STUDENT : "))
# score.append(s2)
# s3 = int(input("ENTER THE SCORE OF THE 3rd STUDENT : "))
# score.append(s3)
# s4 = int(input("ENTER THE SCORE OF THE 4th STUDENT : "))
# score.append(s4)
# score.sort
# print(score)
#----------------------------------------------------------------------------
# a = (1,2,34,4,5,6,6535,77,,4533,546,3)
# a[4] = 45
# print (a)
#----------------------------------------------------------------------------
# number = [433,4523,345,3453,45345,346,3456,457547,457,56745,67456,74567,4356,34526,3456,3456]
# print(sum(number))
#----------------------------------------------------------------------------
# a = (2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,34,4,5,46,456,456,456,78,88,8,8,8,8,8,8,8,8,8,8,8,4,4,4,4,4,4,4,4,4,4,6,7586,8968,97,9,9,9,898,9,9,9,9,9,9)
# count = a.count(8)
# print(count)