Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

Expressions - Part 2

PITHONFOR
EVERYBODY M

Numeric Expressions
Operator Operation
• Because of the lack of mathematical
symbols on computer keyboards - we + Addition
use "computer-speak" to express the - Subtraction
classic math operations
Multiplication
• Asterisk is multiplication Division
** Power
• Exponentiation (raise to a power) looks
different than in math 0
/o Remainder
Expressions - Part 2
PYTHONFOR
EVERYBODY M

User Input
• We can instruct Python to
nam = input('Who are you?')
pause and read data from print('Welcome' , nam)
the user using the input()
function
• The input() function Who are you? Chuck
returns a string Welcome Chuck

You might also like