xxxxxxxxxx
"""
Great foundation for basics
https://www.w3schools.com/python/default.asp"
"""
xxxxxxxxxx
Watch Programming with mosh on youtube
Or if you just need help go to stack overflow or w4schools
xxxxxxxxxx
# Basic python sum calculator
# If you know how to use function, you can use it, but for starters I will not use it
number_first = input("Please input fisrt number: ") # input() is used to take user input
number_second = input("Please input second number: ") # input() is used to take user input
# There is two way to add two numbers
print(sum((number_first, number_second))) # print() used to print stuff. # sum() takes tuple and sum the two or more numbers in it.
print(number_first + number_second) # print() used to print stuff. This method is easier and just make you do simple math.
=========================================================
# Output:
Please input fisrt number: 1
Please input second number: 7
>>> 8 # sum() printed
>>> 8 # second method printed
Python is currently the most widely used multi-purpose, high-level programming language, which allows programming in Object-Oriented and Procedural paradigms. Python programs generally are smaller than other programming languages like Java. Programmers have to type relatively less and the indentation requirement of the language, makes them readable all the time.