Need help adding output in range

前端 未结 0 1473
小蘑菇
小蘑菇 2020-12-08 06:27

I\'m trying to add the output in the given range, how do i do this with python 3?

x = list(range(1,10)) for num in x:

if num%3 == 0:
    print(num)
eli         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题