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
Tehtävä
Swipe to start coding
You have 2 complex numbers, divide them.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 9
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Suggested prompts:
Tiivistä tämä luku
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 3.85
Division
Pyyhkäise näyttääksesi valikon
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
Tehtävä
Swipe to start coding
You have 2 complex numbers, divide them.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 9
single