This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*-coding:utf-8-*- | |
#Verilen dizindeki klasör ve dosya sayısını hesaplayan program | |
import os | |
class sayici: | |
def __init__(self): | |
self.klasor = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*- coding : utf-8 -*- | |
def reader(dosya): | |
csv = open(dosya) | |
csv_list = [] | |
for i in csv: | |
for j in i.split(","): | |
csv_list.append(j.strip()) | |
return csv_list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def tc_kimLik_dogruLa(tc_no): | |
if type(tc_no) == type(10000000146): | |
toplam = 0 #Tek indislerin toplamı | |
toplam2 = 0 #Çift indislerin toplamı | |
toplam3 = 0 # ilk 10 hanenin toplamı | |
for i in range(0, 9, 2): | |
toplam += int(str(tc_no)[i]) | |
for i in range(1, 9, 2): | |
toplam2 += int(str(tc_no)[i]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while True: | |
cumle = raw_input("cümle gir :") | |
kelimeler = cumle.split() | |
liste = [] | |
for i in kelimeler: | |
liste.append(len(i)) | |
uzun = min(liste) | |
sirasi = liste.index(uzun) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*-coding:utf-8-*- | |
cumle = "Deneme mehmet abdulrezzak abuziddintelkadayıf " | |
kelimeler = cumle.split() | |
liste = [] | |
for i in kelimeler: | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*-coding:utf-8-*- | |
from urllib2 import urlopen | |
url = "http://www.serbestdoviz.com/" | |
tl = input("TL miktarını girin:") | |
print "Kur bilgileri alınıyor..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*-coding:utf-8-*- | |
def fak(n): | |
i = 1 | |
if n >= 0: | |
while n>1: | |
i*=n | |
n -= 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: cp1254 -*- | |
print"Hoşgeldiniz biz bir sayı girdik onu bulmaya çalışın bakalım:)" | |
import random | |
x = random.randint(1, 101) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*-coding:utf-8-*- | |
while True: | |
try: | |
n = input("Sayıyı girin:") | |
toplam = 0 | |
tektop = 0 | |
sifirbes = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*-coding:utf-8-*- | |
def kiyasLa(sayi_1, sayi_2): | |
''' | |
>>> kiyasLa(9, 4) | |
1 | |
>>> kiyasLa(6, 6) | |
0 |