Division
We have to use an operator /
to divide numbers.
We can divide all numbers, namely: integers, complex, floating point.
Input:
num_1 = 35
num_2 = 7
division = num_1/num_2
print(f'The division of {num_1} and {num_2} is {division }')
Output:
The division of 35 and 7 is 5.0
Uppgift
Swipe to start coding
You have 2 complex numbers, divide them.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 9
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
Awesome!
Completion rate improved to 3.85
Division
Svep för att visa menyn
We have to use an operator /
to divide numbers.
We can divide all numbers, namely: integers, complex, floating point.
Input:
num_1 = 35
num_2 = 7
division = num_1/num_2
print(f'The division of {num_1} and {num_2} is {division }')
Output:
The division of 35 and 7 is 5.0
Uppgift
Swipe to start coding
You have 2 complex numbers, divide them.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Awesome!
Completion rate improved to 3.85Avsnitt 1. Kapitel 9
single