Cours
Cours
Compilateur de code
Compilateur de code
Discuter
Équipes
Se connecter
S'inscrire
Menu
Discussions Q&R
Chercher
Chercher
Poser une question
Poser une question
for i in range(5):
modules
python
0 Vote
5 Réponses
28th Feb 2017, 2:12 AM
Jamal Bee
for i in range(5): print("*")
python3
2 Votes
2 Réponses
8th Aug 2019, 2:50 PM
sathya
for i in range(5): print(" anything.. ") What does i here depicts??
loops
python
0 Vote
7 Réponses
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 Réponses
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 Vote
4 Réponses
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 Vote
1 Réponse
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 Réponses
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 Réponses
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 Réponses
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 Vote
3 Réponses
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 Vote
2 Réponses
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 Réponses
5th May 2020, 8:17 AM
Aayan Mateen
Poser une question
Poser une question
Poser une question
Poser une question
Aujourd'hui en vedette
Help please?
3 Votes
How to get better with problem-solving and programming
1 Votes
Ejercicio Pytho
0 Votes
Odd even threads without condition variable
0 Votes
Online voting system
2 Votes
What is that z for
0 Votes
Bug on "Java for Beginners Module 3 Quiz"
1 Votes
Suggestions needed
4 Votes
SQL practice
2 Votes
Ruby programming?
3 Votes