Зміст курсу
Learn Python from Scratch
Learn Python from Scratch
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)
Завдання
If you invested $1 in stock market and it returns 15% a year, how much you will have after 10 years?
Дякуємо за ваш відгук!
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)
Завдання
If you invested $1 in stock market and it returns 15% a year, how much you will have after 10 years?
Дякуємо за ваш відгук!
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)
Завдання
If you invested $1 in stock market and it returns 15% a year, how much you will have after 10 years?
Дякуємо за ваш відгук!
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)
Завдання
If you invested $1 in stock market and it returns 15% a year, how much you will have after 10 years?