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
#functions | |
def height(): | |
print("please enter your height in cm format") | |
height = int(input()) | |
if height < 150: | |
print("too short..") | |
elif height > 180: |
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 character_creation(): | |
print(""" | |
please select your class: | |
type "w" for witch | |
type "s" for shadow | |
type "r" for ranger | |
type "d" for duelist | |
type "m" for marauder | |
type "t" for termplar |
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
b = 10 | |
while True: | |
a = b%7 | |
if b > 7: | |
b = int(str(a) + str(0)) | |
c = b//7 | |
else: | |
c = b//7 | |
print(c) |
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
''' | |
tryhard bir program olduğu için sadece | |
tek basamaklı sayılarla işlem yapabilme | |
yeteneğine sahip... | |
''' | |
rakam_listesi = [0,1,2,3,4,5,6,7,8,9] | |
def toplama(a,b): | |
c = a + b |
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 sys as os | |
version = os.version | |
if "3" in version: | |
print("okay this is not 2.x version of python. We are cool.") | |
elif version[1] > 3: | |
print("wow man! that you gotta upgrade me asap!") | |
else: | |
print("we are living in 2017 m9") |
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 ascendant(): | |
x = "\\" | |
c = 1 | |
for i in range(0,20): | |
print(x*c) | |
c += 1 | |
def line(): | |
print("-"*20) |
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 passggg(): | |
password = input("password: ") | |
l = len(password) | |
if not password: | |
print("WHERE IS YOUR GODDAMN PASSWORD!?!") | |
print("now be a good boy and enter your password.") | |
passggg() | |
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
cluster = "0123456789-+/*" | |
operation = input("please do your math operation\n: ") | |
for i in operation: | |
if i not in cluster: | |
print("please work with numbers mr. hacker!") | |
break | |
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 | |
l = [] | |
for i in range(1,11): | |
i = i**2 | |
l.append(i) | |
i = int(math.sqrt(4)) | |
i += 1 | |
print(l) |
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
#savolla and his playground. | |
#whats the differance between the first and second lines? | |
#this program tells us the answer | |
#let's say we want to see not repetitive characters | |
first_line = "hdfjsgkfffgklf25kso3fgşslkdfjdsşlkydfhfgjfurıurrljhpw" | |
second_line = "rğıyooooooooncxbnb909brmrgpoıunrnpn4yyyyyyyyyyckdlsd" | |
difference = "" |
OlderNewer