- 1

How can I make a small code in python.

How can I make this small code in python that print a certain statement while a condition like I = 0, Maxx = 20 while I < Maxx print("hi") I++ and link this to my Facebook account and let it comment on people

6th Jul 2020, 3:45 PM
Aphiwe Ayanda Khumalo
2 ответов
+ 4
Hi Aphiwe Ayanda , here is the short, pythonic as well as an efficient way: for i in range(Maxx): print("hi") - For loops in python is very useful and its a much pythonic way rather than while loops - For loops in python has a different syntax rather than langs like c++ and js has! - Using for loops with python range() can be said as an intelligent feature, ie, will auto-increment lcv
6th Jul 2020, 4:05 PM
A C K
A C K - avatar