First PYTHON program

The first program written in PYTHON gathers two numbers entered from the keyboard and displays the result.
The program instructions are:
#    First program
a = input('First number:')
b = input('Second number:')
c = int(a) + int(b)
print('Result c is:', c)

IDLE Shell 3.10.2 afișază:
Python 3.10.2 (v3.10.2:a58ebcc701, Jan 13 2022, 14:50:16) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license()" for more information.

============== RESTART: /Users/ionivan/Documents/Primul program.py =============
First number:4
Second number:11
Result c is: 15




(March, 21, 2022) 

Comments

Popular posts from this blog

Pointers in PYTHON?

Generates M prime numbers