Division
We have to use an operator /
to divide numbers.
We can divide all numbers, namely: integers, complex, floating point.
python9123456789Input:num_1 = 35num_2 = 7division = num_1/num_2print(f'The division of {num_1} and {num_2} is {division }')Output:The division of 35 and 7 is 5.0
Compito
Swipe to start coding
You have 2 complex numbers, divide them.
Soluzione
9
1
2
3
4
5
a = 40.5 + 4j
b = 80.8 + 2j
division = a/b
print(f'The division of {a} and {b} is {division }')
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 9
9
1
2
3
4
5
a = 40.5 + 4j
b = 80.8 + 2j
division = _ _ _
print(f'The division of {a} and {b} is {_ _ _}')
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione