0

Calling for real method/attribute in Python

I see that 1.real gives error but 1.2.real does not and also (1).real does not give error. What is the reason for this behavior? I can see that both the type for 1 and (1) is int class here.

23rd Jul 2020, 5:43 PM
Ashish
Ashish - avatar
1 Resposta
0
Can you clarify your question more?
23rd Jul 2020, 7:21 PM
Ali Abdelhady
Ali Abdelhady - avatar