Skip to content

Instantly share code, notes, and snippets.

View pasali's full-sized avatar
🎯
Focusing

Mehmet Başal pasali

🎯
Focusing
View GitHub Profile
#!/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()
@pasali
pasali / or.py
Created March 1, 2011 17:18
orgate
# -*- 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)
#!/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
@pasali
pasali / passtestgui.py
Created March 13, 2011 14:20
basit arayüzlü şifre test
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from Tkinter import *
import re
from turtle import *
import time
pen = Tk()
#!/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ı!"
#!/usr/bin/env python
#-*-coding:utf-8-*-
import os
import doctest
liste = []
def test():
#!/usr/bin/env python
#-*-coding:utf-8-*-
def kiyasLa(sayi_1, sayi_2):
'''
>>> kiyasLa(9, 4)
1
>>> kiyasLa(6, 6)
0
#!/usr/bin/env python
#-*-coding:utf-8-*-
while True:
try:
n = input("Sayıyı girin:")
toplam = 0
tektop = 0
sifirbes = 0
@pasali
pasali / sayıbul.py
Created March 28, 2011 22:29
aletingen
#!/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)
#!/usr/bin/env python
#-*-coding:utf-8-*-
def fak(n):
i = 1
if n >= 0:
while n>1:
i*=n
n -= 1