+ 1
The x=2.,.7 print(type(x)) = tuple, but why ?
Can anyone please explain me
2 Réponses
+ 4
Bablu Gouse ,
▪︎even if most of us can guess that the code you have shown here should be python, it would be helpful if you would put the programming language in a tag. thanks!
▪︎the code shown assigns some numbers which are separated by a comma to a variable x. this is a kind of shortcut. the basic way of doing this would be:
x = (2.0, 0.7)
this also answers what the content of x is showing. this way of writing the code is more clear and has a better readability.
+ 2
Have you even tried printing x to see?????