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 turtle import * | |
shape("turtle") | |
import time | |
color("Blue") | |
for i in range(4): | |
forward(200) | |
right(90) | |
up() |
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
# -*- coding: cp1254 -*- | |
import turtle | |
t=turtle.Turtle() | |
for i in range(0,12): | |
t.left(5) | |
t.forward(10) | |
t.left(50) | |
for i in range(0,12): | |
t.left(5) | |
t.forward(10) |
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 -*- | |
import re | |
from turtle import * | |
import time | |
def gosterge(uzunluk,b): | |
renkler=["#ffffc0","#ffc000","#ff8000","#ff4000","#ff0000"] | |
pensize(20) | |
a=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 -*- | |
from Tkinter import * | |
import re | |
from turtle import * | |
import time | |
pen = Tk() |
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/python | |
#-*-coding:utf-8-*- | |
isim = raw_input("isminizi girin:") | |
print "Merhaba ", isim, | |
no = raw_input("numaranı gir:") | |
if no == "019": | |
print"Bu ali adlı kullanıcının numrası!" |
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-*- | |
import os | |
import doctest | |
liste = [] | |
def test(): |
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 |
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: 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-*- | |
def fak(n): | |
i = 1 | |
if n >= 0: | |
while n>1: | |
i*=n | |
n -= 1 |
OlderNewer