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 -*- | |
import turtle | |
t=turtle.Turtle() | |
t.shape("turtle") | |
t.speed(1) | |
t.pensize(4) | |
t.pen(fillcolor="brown",pencolor="white") | |
t.begin_fill() |
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 -*- | |
isim = raw_input("lutfen isminizi giriniz:") | |
if isim == "ali": | |
numara = raw_input("hosgeldin numaranı gir:") | |
if numara == '019': | |
print 'hosgeldin' | |
elif numara <> '019': | |
print "Bu numara Ali'ye ait degil.cik sistemden." |
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 yoL_secici(x, y, z): | |
if (x, y, z) == (0, 0, 0): | |
print "a : 0\nb : 0\nc : 0\d : 0\ne : 0\nf : 0\ng : 0" | |
elif (x, y, z) == (0, 0, 1): | |
print "a : 1\nb : 0\nc : 0\nd : 0\ne : 0\nf : 0\ng : 0" | |
elif (x, y, z) == (0, 1, 0): | |
print "a : 0\nb : 1\nc : 0\d : 0\ne : 0\nf : 0\ng : 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 -*- | |
import math | |
def mutLak_geneL(): | |
while True: | |
print "karmasik sayi icin 1\ntamsayilar icin 2\nondalikli sayilar icin 3\ncikmak icin 4 giriniz:" | |
secenek = raw_input("seciminiz:") | |
if secenek == '1': | |
x = int(raw_input("gercel kısmı giriniz:")) | |
y = int(raw_input("sanal kısmı giriniz:")) |
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
import math | |
def daire_fonk(r): | |
cevre = 2*math.pi*r | |
alan = math.pi*r*r | |
if r > 0: | |
print 'dairenin cevresi',cevre,'birimdir.' | |
print 'dairenin alani',alan,'birim karedir.' | |
if r < 0: | |
print 'yaricap sifirdan kucuk olamaz' |
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 <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
int main(void) | |
{ | |
myswap(); | |
} | |
int myswap(void) |
OlderNewer