Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Multiplication and power | Arithmetic operations
Learn Python from Scratch

book
Multiplication and power

Multiplication is similar (use * to multiply numbers or variables).

To raise number or variable into a power use ** operator (see examples below):

# Example of multiplication
print(2*21)

#Example of power
print(2**21)
12345
# Example of multiplication print(2*21) #Example of power print(2**21)
copy
Tarea

Swipe to start coding

If you invested $1 in stock market and it returns 15% a year, how much you will have after 10 years?

Solución

# Calculate and print your net worth after 10 years
print(1.15**10)




¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 2
# Calculate and print your net worth after 10 years
print(_**_)




Pregunte a AI

expand
ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

some-alt