0
How do u convert a floating number to a tuple
Let's say u are asked to display final mark of a student as a tuple
2 Réponses
+ 1
Simbarashe Mpofu Do you mean
ie. 67.56 becomes (67, 56)?
+ 6
To store a float inside a tuple this can be done:
x = 765.432,
print(x, type(x))