Answers for "That does 1:to:3 do Python ?"

11

for in python

# how to use for in python for (range, lists)
fruits = ["pineapple","apple", "banana", "cherry"]
for x in fruits:
  if x == "apple":
    continue
  if x == "banana":
    break
  print(x)
# fron 2 to 30 by 3 step
for x in range(2, 30, 3):
  print(x)
Posted by: Guest on March-26-2020
0

That does 1:to:3 do Python ?

dasdsasda
Posted by: Guest on May-13-2021

Code answers related to "That does 1:to:3 do Python ?"

Python Answers by Framework

Browse Popular Code Answers by Language