0% found this document useful (0 votes)
5 views5 pages

A

Uploaded by

codattack322
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views5 pages

A

Uploaded by

codattack322
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss

sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
ssssssssssssssssssssssswwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
sssssssssssssssssssssssssssssssssssssddddddddddddddddddddddddddddddddddddddxsssssss
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssddddddddddddddd
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddss
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
ssssssssssssddddddddddddddddddddddddddddddddddddddddddddddddsssssssssssssssssssssss
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
sssssssssssssssssssskkkkkkkkkkkkkkkkkkakıllı ol lan
print(3+3)
print(10-3)
print(2*2)
print(10/2)
print(100//3)
print(10%3)
print(3**2)ssssssssssssssssssssssssssss
print(2**3)

python derslerı bolum 3 (yorum satırı olusturma)

# bu ısaret yorum satırı demek


"""
bu tırnakların ıcıne ne yazarsan yorum satırı olarak gorunur
"""

python derslerı bolum 4 (degısken tanımlama)

urun1=7000
urun2=8000
kdv=0.18

print(urun1+(urun1*kdv)
print(urun2+(urun2*kdv)

python derslerı bolum 5 (degısken kuralları)

bura basıt sende

python derslerı bolum 6 (verı tıplerı ve degıskenlerı)

name="hackercio"
surname=False
age=30
weight=50.25

print(type(name))
print(type(surname))
print(type(age))
print(type(weight))
int to float ve float to ınt

sonuc=int(weight)
print(sonuc)

sonuc1=float(age)
print(sonuc1)

bool to str ve str to bool

result=str(surname)
print(result)

result1=bool(name)
print(result1)

bool to int ve bool to float

karakter=int(surname)
print(karakter)

karakter1=float(surname)
print(karakter1)

python derslerı bolum 7 (karakter dizileri strıngs)

name="hackercio"
surname="ruhhastası"
age="18"

print(" benım adım " + name + " soyadım " + surname + " ve yasım " + age + ".")

python derslerı bolum 8 (karakter dızılerı dılımleme)

name = "ruhhastası"
surname = "by_coder"
age = "36"

text = "benım adım " + name + " soyadınm ıse " + surname + " yasım " +age+ "."

print(text)

dilimleme=text[0]
dilimleme2=text[1]
dilimleme3=text[5]
dilimleme4=text[0:5]
dilimleme5=text[1:]
dilimleme6=text[:10]
dilimleme7=text[1:2:20]
dilimleme8=text[-10:-1]
dilimleme9=text[::25]
dilimleme10=text[2::]

python derslerı bolum 9 (strıng formatlama)


name="hackercio"
surname="ruhhastası"
age=30

print("benım adım {} soyadım {} ve yasım {} .format(name,surname,age))


print("benım adım {0} soyadım {1} ve yasım {2}.format(name,surname,age))
print("benım adım {n} soyadım {s} ve yasım {a}.format(n=name,s=surname,a=age))
print(f"benım adım {name} soyadım {surname} yasım ıse {age}")

python derslerı 10 (strıng formatlama methotları)

yazı=("benım adım hackercio soyadım ruhhastası ve istanbulda yasıyorum)

sonuc=yazı.upper()
print(sonuc)

sonuc1=yazı.lower()
print(sonuc1)

sonuc2=yazı.title()
print(sonuc2)

sonuc3=yazı.capitalize()
print(sonuc3)

sonuc4=yazı.islower
print(sonuc4)

sonuc5=yazı.isupper
print(sonuc5)

sonuc6=yazı.strip()
print(sonuc6)

sonuc7=yazı.split()
print(sonuc7)

sonuc8=yazı.split(".")
print(sonuc8)

sonuc9="-".join(yazı)
print(sonuc9)

sonuc10=" ".join(yazı)
print(sonuc10)

sonuc11=yazı.index("adım")
print(sonuc11)

sonuc12=yazı.startswith("b")
print(sonuc12)

sonuc13=yazı.endswith("m")
print(sonuc13)

sonuc14=yazı.replace("ıstanbul","ankara")
print(sonuc14)
python derslerı bolum 11 listeler

sayılar=[1,2,3,4,5,6]
print(sayılar)

sonuc=sayılar[1]
print(sonuc)

sonuc1=sayılar[3]
print(sonuc1)

sonuc2=sayılar[-1]
print(sonuc2)

liste=[1,1.5,True,"hackercio"]

print(type(liste)

result=liste[2]
print(type(result))

result1=liste[0]
print(type(result1))

result2=liste[1]
print(type(result2))

result3=liste[3]
print(type(result3))

listemert=["mert" , 18]
listeceyda=["ceyda" , 20]

kısı=listemert[0]
print(kısı)

kısı2=listemert[1]
print(kısı2)

kısı3=listceyda[1]
print(kısı3)

kısı4=listeceyda[0]
print(kısı4)

ogrencıler=["mert" , 18 ] , ["ceyda" , 20 ]

print(ogrencıler[0])
print(ogrencıler[1])

print(ogrencıler)

ogrencıler1=[listemert , listeceyda]
print(ogrencıler1)

python derslerı bolum 12 (listelerde temel islemler)

iller=["istanbul" , "ankara", "canakkkale" , "bursa"]

ilcesec=iller[0]

print(ilcesec)

ilcesec1=iller[-1]

iller[0]="tekırdag"
print(iller)

iller[1]="siirt"
print(iller)

print(type(iller)

sonuc=len(iller)
print(iller)

sonuc1=iller + ["malatya"]
print(sonuc1)

del iller[0]

print(iller)

You might also like