Created
May 8, 2021 08:45
-
-
Save SmashedFrenzy16/43c8170002842ed9629abecb321ef444 to your computer and use it in GitHub Desktop.
PytoolSuite Python Module - it does a lot of very useful things!
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
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