Python tutorial: ADD TWO NUMBERS in python with input scanner | SUM NUMBERS

Опубликовано: 10 Октябрь 2024
на канале: FileTech en
17
1

how to add two numbers in python language with a input scanner and SUM NUMBERS. python program to add two numbers. You will learn how to add two numbers in python or variables that the user enters, suffice it to say that you can also subtract, with this method that I am going to explain. I hope this scanner that I am going to show you will help you.

👉 ACCESS webpage ►
https://www.filetechn.com

-- CODE --
terminal: python3 -- Linux, Mac OS
termianl: py -- windows

1) Normally:

a = 10
b = 20
a + b

2) With input scanner

n1 = int(input("number1: "))
n2 = int(input("number2: "))
sum = n1+n2
print(sum)

★NETWORKS (FOLLOW US)★

►Facebook:   / filetechn  
►Group Facebook:   / 2356934024596866  
►Canal de telegram: https://t.me/filetech

★DOWNLOAD OUR APPS FOR ANDROID★
► https://play.google.com/store/apps/de...

Remember that these videos are for educational purposes.