-
Notifications
You must be signed in to change notification settings - Fork 0
/
file.Q.3.py
50 lines (43 loc) · 885 Bytes
/
file.Q.3.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
# Iss text ko people1-exercise.txt ke naam ki file mein save karo.
# Code Example
# Ab apne code se iss file ko kholo aur fir, uske saare contents ko print karo.
# name='''rishabh - meerut
# imtiyaz - delhi
# nilima - cochin
# rati - shimla
# ayishah - delhi
# raghu - shimla
# naseer - kanpur
# karthikeyan - delhi
# salma - jaipur
# pankaj - delhi
# brijesh - delhi
# govind - delhi
# puneet - shimla
# tanuja - Ahmednagar
# siddhi - delhi
# suman - jaipur
# rajeev - shimla
# mohinder - delhi
# rajendra - jaipur
# priyanka - shimla
# neela - delhi
# sashi - jaipur
# sarika - delhi
# deepti - shimla
# harshad - delhi
# trishna - raipur
# pradeep - jaipur
# sekhar - delhi
# nand - delhi
# anoop - delhi
# balwinder - tokyo'''
# obj=open("nameoflist.txt","w")
# obj.write(name)
# obj.close()
o=open("nameoflist.txt")
count=0
for i in (o):
count+=1
print(count)
o.close()