loops:- infinite loops (dont do this)
Iteration example:-remember
i=0
while i<=5:
print("hello looo")
this is infinte loop :-be aware of it, print will goes on unless you will not specify condition for i particularly.
do like this as below:-
i=0
while i<=5:
print("hello looo")
i=i+1
##i=i+2,3.4 i=i-1,2,3 i=i*1,2,3 i=i/1
## you can do like this stuff :- divide, multiply and subract as well."C:\Users\darul Haram\PycharmProjects\pythonProject2\venv\Scripts\python.exe" "C:/Users/darul Haram/PycharmProjects/pythonProject2/venv/Lib/loops.py" hello looo hello looo hello looo hello looo hello looo hello looo Process finished with exit code 0
Comments
Post a Comment