Avsnitt 2. Kapitel 2
single
Multiplication and power
Svep för att visa menyn
Multiplication is similar (use * to multiply numbers or variables).
To raise number or variable into a power use ** operator (see examples below):
12345# Example of multiplication print(2*21) #Example of power print(2**21)
Uppgift
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?
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 2
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal