2021年4月10日星期六

Loops in Python

I need to create a loop in python and stop just after I get to 1000. At present, it looks like it stops just before the loop hits 1000 and I need it to go one more value.

var = 3.0  while var < 1000:      print(Var)      Var = var * 2.1  
https://stackoverflow.com/questions/67040585/loops-in-python April 11, 2021 at 09:04AM

没有评论:

发表评论