This file contains 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 turtle | |
t = turtle.Turtle() | |
w = turtle.Screen() | |
w.title("ŞANLI SANCAK") # Başlık | |
w.setup(width=720,height=420) # Pencere Boyutu | |
w.bgcolor("red") # Arka Plan Kırmızı Yap | |
# İlk daire | |
t.up() |
This file contains 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 datetime | |
input("Hazır olduğunuzda ENTER 'e basınız. ") | |
print("ENTER 'e basınca sonuç gösterilir") | |
print("Süre başladı") | |
basla = datetime.datetime.now() | |
yazi = input("Yazınız: ") |
This file contains 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
# Finding words from text without spaces with Python. | |
def kelimeBul(kelime, find): | |
s = 0 | |
yeni = [] | |
for i in kelime: | |
if ("".join(yeni) == find): | |
break | |
elif find[s] == i: | |
# print(find[s], i) |
This file contains 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 win32gui | |
def winEnumHandler(ad, x): | |
if win32gui.IsWindowVisible(ad): | |
print(win32gui.GetWindowText(ad)) | |
win32gui.EnumWindows(winEnumHandler, None) |
This file contains 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
""" | |
TR: Bu kod, pip aracılığıyla yüklü olan tüm Python paketlerini günceller. | |
EN: This code updates all Python packages installed via pip. | |
""" | |
import subprocess | |
# Yüklü paketlerin listesini al | |
outdated_packages = subprocess.check_output(["pip", "list"]).decode("utf-8") | |
outdated_packages = [line.split()[0] for line in outdated_packages.splitlines()[2:]] |