0
I have used this code and I've got weird answer!! Why this happened?
i=1 While i<=5: print (i) i+= 0.05
4 Respuestas
+ 2
Read this documentation, it will answer your question.
https://docs.python.org/3/tutorial/floatingpoint.html
+ 3
Hi! what exactly answer did you receive and what result do you expect? I launched your program and it works great. really I fixed a little mistake you made
0
this could happen accidentally, the capital letter was formed when copying the code. most likely, the interrogator had in mind the result. he surprised him