fileinp=open(‘mar.txt’.’r’)
while str:
str=fileinp.readline()
print(str)
fileinp.close()
CAN ANYBODY PLEASE EXPLAIN HOW THE WHILE LOOP WORKS IN THIS CODE AND WHAT DOES (while str:) MEANS.i am writing this beacause this shitty website says should contain atleast 220 characters
New contributor
vishnu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.