
cities=["İzmir","Antalya","Ankara","İstanbul","Sakarya"]
print(cities[3])
print(cities[-1]) ##Sondan başlar
print(cities[:2])
print(cities[:-1])
cities[1]="Eskişehir"
print(cities)
cities.append("Ordu") ##Sona ekler
print(cities)
cities.insert(0,"Kars")
print(cities)
del cities[0] ##Silinen şeye ulaşılamaz
print(cities) 

cities=["İzmir","Antalya","Ankara","İstanbul","Sakarya"]
print(cities)
cities.pop()
print(cities)
cities2=cities.pop()
print(cities2)

cities=["İzmir","Antalya","Ankara","İstanbul","Sakarya"]
cities.remove("Ankara")
print(cities)

cities=["izmir","antalya","ankara","istanbul","sakarya"]
print(cities)
cities.sort()  ##Alfabetik sıralama
print(cities)
cities.sort(reverse=True) ##Alfabe tersten sıralama
print(cities) 




cities=["izmir","antalya","ankara","istanbul","sakarya"]
print(cities)
print(sorted(cities))
print(cities)



numbers=[11,22,33,56]
print(min(numbers))
print(max(numbers))
print(sum(numbers)) ##Toplamları



cities=["tokyo","madrid","londra","kiev"]
print(cities.index("londra")) ##Sırasını verir
print("ankara" in cities)  ##Listede oup olmadığını kontrol
print("tokyo" in cities)

for a in cities:
    print(a)



cities=["tokyo","madrid","kiev","londra"]
for a in cities:
    print(f"Gezilemeyen yer : {a}")



str_cities= "tokyo,madrid,kiev"
print(str_cities)
my_list=str_cities.split(", ") ## tırnak içindeki şeye göre ayırır
print(my_list)

str_email = "faruk0799@gmail.com"
my_list2=str_email.split("@")
print(my_list2)




for a in range(1,10):
    print(a)

for b in range(2,21,2):
    print(b)

numbers=list(range(1,11))
print(numbers)

numbers= [number for number in range(1,11)]
print(numbers)

cities=["ankara","izmir","afyon"]
print(cities)
cities2=cities[:]
print(cities2)
cities.append("artvin")
print(cities)
print(cities2)














































































































281340d420246b30593dcaa2c467e73d7b9d6407
<mask token>

<mask token>
print(cities[3])
print(cities[-1])
print(cities[:2])
print(cities[:-1])
<mask token>
print(cities)
cities.append('Ordu')
print(cities)
cities.insert(0, 'Kars')
print(cities)
del cities[0]
print(cities)
<mask token>
print(cities)
cities.pop()
print(cities)
<mask token>
print(cities2)
<mask token>
cities.remove('Ankara')
print(cities)
<mask token>
print(cities)
cities.sort()
print(cities)
cities.sort(reverse=True)
print(cities)
<mask token>
print(cities)
print(sorted(cities))
print(cities)
<mask token>
print(min(numbers))
print(max(numbers))
print(sum(numbers))
<mask token>
print(cities.index('londra'))
print('ankara' in cities)
print('tokyo' in cities)
for a in cities:
    print(a)
<mask token>
for a in cities:
    print(f'Gezilemeyen yer : {a}')
<mask token>
print(str_cities)
<mask token>
print(my_list)
<mask token>
print(my_list2)
for a in range(1, 10):
    print(a)
for b in range(2, 21, 2):
    print(b)
<mask token>
print(numbers)
<mask token>
print(numbers)
<mask token>
print(cities)
<mask token>
print(cities2)
cities.append('artvin')
print(cities)
print(cities2)

cities = ['İzmir', 'Antalya', 'Ankara', 'İstanbul', 'Sakarya']
print(cities[3])
print(cities[-1])
print(cities[:2])
print(cities[:-1])
cities[1] = 'Eskişehir'
print(cities)
cities.append('Ordu')
print(cities)
cities.insert(0, 'Kars')
print(cities)
del cities[0]
print(cities)
cities = ['İzmir', 'Antalya', 'Ankara', 'İstanbul', 'Sakarya']
print(cities)
cities.pop()
print(cities)
cities2 = cities.pop()
print(cities2)
cities = ['İzmir', 'Antalya', 'Ankara', 'İstanbul', 'Sakarya']
cities.remove('Ankara')
print(cities)
cities = ['izmir', 'antalya', 'ankara', 'istanbul', 'sakarya']
print(cities)
cities.sort()
print(cities)
cities.sort(reverse=True)
print(cities)
cities = ['izmir', 'antalya', 'ankara', 'istanbul', 'sakarya']
print(cities)
print(sorted(cities))
print(cities)
numbers = [11, 22, 33, 56]
print(min(numbers))
print(max(numbers))
print(sum(numbers))
cities = ['tokyo', 'madrid', 'londra', 'kiev']
print(cities.index('londra'))
print('ankara' in cities)
print('tokyo' in cities)
for a in cities:
    print(a)
cities = ['tokyo', 'madrid', 'kiev', 'londra']
for a in cities:
    print(f'Gezilemeyen yer : {a}')
str_cities = 'tokyo,madrid,kiev'
print(str_cities)
my_list = str_cities.split(', ')
print(my_list)
str_email = 'faruk0799@gmail.com'
my_list2 = str_email.split('@')
print(my_list2)
for a in range(1, 10):
    print(a)
for b in range(2, 21, 2):
    print(b)
numbers = list(range(1, 11))
print(numbers)
numbers = [number for number in range(1, 11)]
print(numbers)
cities = ['ankara', 'izmir', 'afyon']
print(cities)
cities2 = cities[:]
print(cities2)
cities.append('artvin')
print(cities)
print(cities2)


cities=["İzmir","Antalya","Ankara","İstanbul","Sakarya"]
print(cities[3])
print(cities[-1]) ##Sondan başlar
print(cities[:2])
print(cities[:-1])
cities[1]="Eskişehir"
print(cities)
cities.append("Ordu") ##Sona ekler
print(cities)
cities.insert(0,"Kars")
print(cities)
del cities[0] ##Silinen şeye ulaşılamaz
print(cities) 

cities=["İzmir","Antalya","Ankara","İstanbul","Sakarya"]
print(cities)
cities.pop()
print(cities)
cities2=cities.pop()
print(cities2)

cities=["İzmir","Antalya","Ankara","İstanbul","Sakarya"]
cities.remove("Ankara")
print(cities)

cities=["izmir","antalya","ankara","istanbul","sakarya"]
print(cities)
cities.sort()  ##Alfabetik sıralama
print(cities)
cities.sort(reverse=True) ##Alfabe tersten sıralama
print(cities) 




cities=["izmir","antalya","ankara","istanbul","sakarya"]
print(cities)
print(sorted(cities))
print(cities)



numbers=[11,22,33,56]
print(min(numbers))
print(max(numbers))
print(sum(numbers)) ##Toplamları



cities=["tokyo","madrid","londra","kiev"]
print(cities.index("londra")) ##Sırasını verir
print("ankara" in cities)  ##Listede oup olmadığını kontrol
print("tokyo" in cities)

for a in cities:
    print(a)



cities=["tokyo","madrid","kiev","londra"]
for a in cities:
    print(f"Gezilemeyen yer : {a}")



str_cities= "tokyo,madrid,kiev"
print(str_cities)
my_list=str_cities.split(", ") ## tırnak içindeki şeye göre ayırır
print(my_list)

str_email = "faruk0799@gmail.com"
my_list2=str_email.split("@")
print(my_list2)




for a in range(1,10):
    print(a)

for b in range(2,21,2):
    print(b)

numbers=list(range(1,11))
print(numbers)

numbers= [number for number in range(1,11)]
print(numbers)

cities=["ankara","izmir","afyon"]
print(cities)
cities2=cities[:]
print(cities2)
cities.append("artvin")
print(cities)
print(cities2)













































































































