Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
for i in range(5):
modules
python
0 Votes
5 Answers
28th Feb 2017, 2:12 AM
Jamal Bee
for i in range(5): print("*")
python3
2 Votes
2 Answers
8th Aug 2019, 2:50 PM
sathya
for i in range(5): print(" anything.. ") What does i here depicts??
loops
python
0 Votes
7 Answers
26th Jun 2016, 11:46 AM
Kanishk Gangwar
x=[] for y in range(5): if y[b] % [/b]2==0: x.append(y) continue print (x)
python3
1 Vote
4 Answers
15th Apr 2023, 8:06 AM
Somvir Dhaka
How does this work? why is there an i? for i in range(5): print("hello!")
loops
python
0 Votes
4 Answers
14th Sep 2016, 11:29 AM
Giovanni
for i in range(5): print("hello!") - shouldn't this list out 6 lines (0-5?)
loops
python
0 Votes
1 Answer
25th Mar 2020, 6:58 PM
kevin
c = 0 for x in range(10): for y in range(5): c += 1 print(c)
python
-1 Vote
3 Answers
12th Jun 2021, 5:51 AM
Deepak Murmu
file=open('num.txt', 'w') name=[] for i in range(5): n=input("Enter Name: ") file.writelines(name) name.append(n+'\n') file
error
-3 Votes
2 Answers
24th Jul 2022, 3:05 AM
Gunda Freefire
When it says import random for i in range(5): value = random.randint(1, 6) print(value) What does the 'i' mean?
modules
python
5 Votes
12 Answers
7th Apr 2016, 5:14 AM
Bam Morgan
for i in range(5): print("hello!"), output is that 5 times hello is printed, but what "i" is doing in the whole code??
loops
0 Votes
3 Answers
9th Jul 2019, 7:59 PM
Garima Agrawal
import random for i in range(5): value = random.randint(1, 6) print(value) 1.Why we use import random ? 2.why we write value variable instead of i ? 3.why we include random.randint ? 4.what is randint ?
python
0 Votes
2 Answers
1st Aug 2016, 11:03 AM
Rupam Das
compilition error
-140)
'blue'
'green'
'purple']
'yellow'
"normal"))
12
30)
320)
clr=['red'
font=("arial"
for
i
import
in
range(5):
screen.bgcolor('black')
screen.setup(420
screen=turtle.screen()
solutions'
time
trtl.forward(200)
trtl.ht()
trtl.pencolor('olive')
trtl.pencolor(clr[i])
trtl.pendown()
trtl.pensize(4)
trtl.penup()
trtl.right(144)
trtl.setpos(-90
trtl.setpos(80
trtl.write('vivax
trtl=turtle.turtle()
turtle
-2 Votes
2 Answers
5th May 2020, 8:17 AM
Aayan Mateen
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
Saturn League badge
2 Votes
Sololearn keeps crashing
1 Votes
SHOULD I LEARN HTML OR PYTHON/JAVA
0 Votes
Lua course?
2 Votes
Why producer consumer not working at all
1 Votes
certificate
1 Votes
CSS
1 Votes
Adding an image to my html
0 Votes
Not able to activate account
0 Votes
About Advanced Courses
0 Votes