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
| class Nokta: | |
| def __init__(self, x=0, y=0): | |
| self.x = x | |
| self.y = y | |
| class Dikdortgen: | |
| pass | |
| def noktayi_yaz(p): | |
| print '(%s, %s)' % (str(p.x), str(p.y)) |
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 row_times_column(m1, row, m2, column): | |
| """ | |
| >>> row_times_column([[1, 2], [3, 4]], 0, [[5, 6], [7, 8]], 0) | |
| 19 | |
| >>> row_times_column([[1, 2], [3, 4]], 0, [[5, 6], [7, 8]], 1) | |
| 22 | |
| >>> row_times_column([[1, 2], [3, 4]], 1, [[5, 6], [7, 8]], 0) | |
| 43 | |
| >>> row_times_column([[1, 2], [3, 4]], 1, [[5, 6], [7, 8]], 1) | |
| 50 |
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 liste_matris(m=matris, boyut=5): | |
| matris = {(0, 3): 1, (2, 1): 2, (4, 3): 3} | |
| matris2 = [] | |
| n = 0 | |
| while n != boyut: | |
| matris2.append([0] * boyut) | |
| n += 1 | |
| for tup in matris: | |
| matris2[tup[0]][tup[1]] = matris[tup] | |
| return matris2 |
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 sifreLe(sifrelenecek_dosya, sifreli_dosya): | |
| dosya = open(sifrelenecek_dosya, 'r') | |
| sifreli = open(sifreli_dosya, 'w') | |
| while True: | |
| sifre = dosya.readline(50) | |
| for i in sifre: |
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 os | |
| pencere = Tk() | |
| pencere.geometry("200x75+75+50") | |
| pencere.title("Gökhan CEYLAN") |
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
| <html> | |
| <head> | |
| </head> | |
| <style> | |
| html { background-color: #656565;} | |
| body {margin:auto; width:400; height:400; margin-top:30px; background-color:grey; padding:20px} | |
| </style> | |
| <title>Asal Sayı mı?</title> | |
| <?php | |
| echo "Sizce 727271 sayısı asal sayı mıdır? Merak mı ettiniz?<br>"; |
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 sys | |
| def temizle(): | |
| kutu1.delete(1.0, END) | |
| kutu2.delete(1.0, END) |
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
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>deneme 1-2-3</title> | |
| </head> | |
| <body> | |
| <section> | |
| <div> | |
| <canvas id="canvas" width="400" height="300"></canvas> |
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: utf-8 -*- | |
| def eleman_sayilarini_esitle(liste1, liste2, yer, eleman): | |
| n = len(liste1) | |
| m = len(liste2) | |
| while n != m: | |
| if n > m: | |
| liste2.insert(yer, eleman) | |
| m += 1 | |
| else: | |
| liste1.insert(yer, eleman) |
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: utf-8 -*- | |
| def en_buyuk_ardil_toplam(dizi): | |
| dizi2 = [0] * len(dizi) | |
| en_buyuk = 0 | |
| for ind, i in enumerate(dizi): | |
| if ind == 0: | |
| dizi2[ind] = dizi[ind] |
OlderNewer