-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3.py
45 lines (44 loc) · 1.14 KB
/
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
# # s="500+183+168+146+256+168+329"
# # s=s+"+"
# # k=0;sum=0
# # for i in range(0,len(s)):
# # if(s[i]=="+"):
# # w=s[k:i]
# # w=int(w)
# # # print(w)
# # sum=sum+w
# # k=i
# # print(sum)
# def s8():
# sum=5
# print(sum)
# aiter
# s8()
# str_places = '''karnataka bangalore lalbagh
# tamilnadu kanyakumari vivekananda_rock
# kerala thiruvananthapuram padmanabha_temple
# kerala idukki munnar
# karnataka mysore brindavan_gardens
# karnataka mysore mysore_palace
# karnataka hassan shravanabelagola
# karnataka hassan Halebeedu
# tamilnadu chennai egmore_museum
# tamilnadu kanchi kaamaakshmi_temple
# karnataka bangalore cubbon_park
# karnataka hampi maharnavami_dibba'''
# # find and print the number of states and their names
# str_places1=str_places.split("\n");s=set();count=0
# # print(str_places1)
# # for i in range(0,len(str_places1)):
# # for j in str_places1[i]:
# # state=
# # for i in str_places1:
# # s.add(i.split()[0])
# # print(s)
# # print(len(s))
# dict={};ltx=[]
# for i in str_places1:
# lt=i.split()
# print(lt)
# dict[lt[0]]=ltx.append(lt[1])
# print(dict)