+ 1

The x=2.,.7 print(type(x)) = tuple, but why ?

Can anyone please explain me

24th Jun 2021, 7:24 AM
S GOUSE BASHA
S GOUSE BASHA - avatar
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.
24th Jun 2021, 2:21 PM
Lothar
Lothar - avatar
+ 2
Have you even tried printing x to see?????
24th Jun 2021, 7:41 AM
Slick
Slick - avatar