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
Tab 0: | |
--unknown ocean | |
--markus | |
--init | |
tile=0 | |
found=0 | |
fb=0 | |
v=0 | |
pos=0 |
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
def Calculate(firstNumber, secondNumber): | |
statement = input("Would you like to {/|*|+|-}") | |
if statement == "/": | |
answer = firstNumber / secondNumber | |
print(answer) | |
GetNumbers() | |
if statement == "*": | |
answer = firstNumber * secondNumber | |
print(answer) | |
GetNumbers() |
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 linecache | |
import difflib | |
def Restart(): | |
def doStuff(): | |
option = input("What would you like to do: {add website|log out|take note|see websites|see notes}") | |
if option == "take note": | |
file = open("Notes.txt", "a") |
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
en_fr = {"french":"francais", "english":"anglais", "food":"nuriture", "to go":"aller", "to be":"etre", "cat":"chat", | |
"dog":"chien", "diamond":"diamant", "list":"liste", "dictionary":"dictionaire", "human":"humain", "boy":"garcon" | |
, "girl":"fille", "funny":"drole"} | |
def go(): | |
word = (input("What word would you like to translate? (french|english|food|to go|to be|cat|dog|diamond|list|dictionary|\n" | |
"human|boy|girl|funny)")) | |
print(en_fr[word]) | |
go() | |
go() |