-
Notifications
You must be signed in to change notification settings - Fork 0
/
file.py
57 lines (47 loc) · 1.56 KB
/
file.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
# obj=open("student.txt","w")
# size=int(input("how many student details you want :-"))
# for i in range(size):
# roll=int(input("enter the number :-"))
# name=input("enter the name :-")
# marks=float(input("enter the marks:-"))
# store=str(roll)+","+name+","+str(marks)+"\n"
# obj.write(store)
# obj.close()
# obj=open("student.txt","r")
# tanu=obj.read()
# print(tanu)
# a=open("address.txt","w")
# name=["rishabh","imtiyaz" ,"nilima","rati","ayishah","raghu","pankaj"]
# add=["delhi"," shimla", "kanpur","delhi","jaipur","pune","ahmednagar"]
# i=0
# while i<len(name):
# s=name[i]+" = "+add[i]+"\n"
# print(s)
# i+=1
# a.write(s)
# a.close()
# a=open("sec.txt","w")
# name=["rishabh","imtiyaz" ,"nilima","rati","ayishah","raghu","pankaj"]
# add=["delhi"," shimla", "kanpur","delhi","jaipur","pune","ahmednagar"]
# for i in range(len(name)):
# s=name[i]+" = "+add[i]+"\n"
# a.write(s)
# a.close()
# obj=open("new.txt","a")
# size=int(input("how many student details you want :-"))
# for i in range(size):
# roll=int(input("enter the number :-"))
# name=input("enter the name :-")
# marks=float(input("enter the marks:-"))
# store=str(roll)+","+name+","+str(marks)+"\n"
# obj.write(store)
# obj.close()
# a=open("tanu.txt","w")
# size=int(input("how many student details you want :-"))
# for i in range(size):
# roll=int(input("enter the number :-"))
# name=input("enter the name :-")
# marks=float(input("enter the marks:-"))
# store=str(roll)+","+name+","+str(marks)+"\n"
# a.write(store)
# a.close()