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-*- | |
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
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
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
#!/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
#!/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
def fak(n): | |
if n < 0: | |
print "Negatif sayıların faktöriyeli alınamaz." | |
return | |
else: | |
if n == 0 or n == 1: | |
return 1 | |
else: | |
return n * fak(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:utf-8-*- | |
class kompleks: | |
def __init__(self, x, y): | |
self.reel = x | |
self.sanal = y | |
def mutlak(self): | |
mut = (self.reel**2 +self.sanal**2)**0.5 |
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
#include <stdio.h> | |
#include <string.h> | |
main(void) { | |
char dizi[] = "mmmehhhmmmettt"; | |
char d; | |
int i= 0; | |
int sayac = 1; | |
for (i ;i<= strlen(dizi);i++){ | |
if(d == dizi[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
#!/usr/bin/env python | |
#-*-coding:utf-8-*- | |
class LogicGate: | |
def __init__(self, n): | |
self.label = n | |
def GetLabel(self): | |
return self.label |