s= "hey dudes!"for i in range(9): print s[i]travis vonheeder
for i in range(8): s= "hey dudes!" print (s[i])- Owen Luther
move the statement down into the loop.jonathan
Chris VanYes= "hey dudes!"for i in range(10): print s[i]
We can change the range to 9 so it prints through "!"-Katelyn
heydudes!Alex Haston
for i in range(10): print s[i]Josh Lee
8 becomes 10_Ben
hey dudes!-Gary Gao
s = ("hey dudes")for i in range(9): print s[i]add parenthesis and account for the space -Sean
Actually, it needs parentheses around s[i] in order to run in IDLEand range needs to go to 10-Katleyn
You have to fix the loop by implementing the len function so it can get the length of the string type variable 's'like this:s = "hey dudes!"for i in range(len(s)): print s[i] You can also change the range to 10 since everything starts from 0 in programming.- Abby Peterson
change for I in range(8)to 1.-Lux lei
s= "hey dudes!" for s in range(8): print s[i]Charlie Lin
1. there needs to be a parenthesis around s[i].2. We should also change the 8 to 10 so that ti prints the entire thing.-Joe Haj
s= "hey dudes!"
ReplyDeletefor i in range(9):
print s[i]
travis vonheeder
for i in range(8):
ReplyDeletes= "hey dudes!"
print (s[i])
- Owen Luther
move the statement down into the loop.
ReplyDeletejonathan
Chris VanYe
ReplyDeletes= "hey dudes!"
for i in range(10):
print s[i]
We can change the range to 9 so it prints through "!"
ReplyDelete-Katelyn
h
ReplyDeletee
y
d
u
d
e
s
!
Alex Haston
for i in range(10):
ReplyDeleteprint s[i]
Josh Lee
8 becomes 10
ReplyDelete_Ben
h
ReplyDeletee
y
d
u
d
e
s
!
-Gary Gao
s = ("hey dudes")
ReplyDeletefor i in range(9):
print s[i]
add parenthesis and account for the space
-Sean
Actually, it needs parentheses around s[i] in order to run in IDLE
ReplyDeleteand range needs to go to 10
-Katleyn
You have to fix the loop by implementing the len function so it can get the length of the string type variable 's'
ReplyDeletelike this:
s = "hey dudes!"
for i in range(len(s)):
print s[i]
You can also change the range to 10 since everything starts from 0 in programming.
- Abby Peterson
change for I in range(8)to 1.
ReplyDelete-Lux lei
s= "hey dudes!"
ReplyDeletefor s in range(8):
print s[i]
Charlie Lin
1. there needs to be a parenthesis around s[i].
ReplyDelete2. We should also change the 8 to 10 so that ti prints the entire thing.
-Joe Haj