Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

arithmetic python string

x = 27
y = 15
 
print(f"{x} + {y} = {x+y}")
print(f"{x} - {y} = {x-y}")
print(f"{x} * {y} = {x*y}")
# Printing can also be made as follows:
print(x, "/", y, "=", (x / y))
Source by tmc.mooc.fi #
 
PREVIOUS NEXT
Tagged: #arithmetic #python #string
ADD COMMENT
Topic
Name
8+8 =