Skip to content

Instantly share code, notes, and snippets.

@SmashedFrenzy16
Created May 8, 2021 08:45
Show Gist options
  • Save SmashedFrenzy16/43c8170002842ed9629abecb321ef444 to your computer and use it in GitHub Desktop.
Save SmashedFrenzy16/43c8170002842ed9629abecb321ef444 to your computer and use it in GitHub Desktop.
PytoolSuite Python Module - it does a lot of very useful things!
class Phone:
def __init__(self, hardware, cover):
self.hardware = hardware
self.cover = cover
def createPythonDoc():
PythonDoc = open("doc.py", "w")
PythonDoc.write("")
PythonDoc.close
def additionCalc():
print("Welcome to this addition calculator!")
name = input("Enter your name:" )
age = input("Enter your age:" )
num1 = input("Enter your first number:" )
num2 = input("Enter your second number:" )
result = (float(num1) + float(num2))
print("Hello, " + name + "!")
print("You are " + age + " years old")
print("And this is the answer to your addition:")
print(result)
numbers_to_ten = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
sampleInput = input("Sample input: ")
helloWorld = print("Hello World")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment