Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

what will be the output of the following python code? x = 123 for i in x: print(i)

#This would not work because "in [insert something here]" is for arrays
#Solution:
x = 123
for i in range(1,x):
  print(i)
 
PREVIOUS NEXT
Tagged: #output #python
ADD COMMENT
Topic
Name
5+2 =