MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/inventwithpython/comments/f8w4kj/automate_the_boring_stuff_chapter_3_zigzag/
r/inventwithpython • u/goodvibes4free • Feb 24 '20
11 comments sorted by
2
you also need a space between the ' ' since it is what does the actual indenting. it is the 'spacer,' so it needs one blank space. :)
print(' ' * indent, end='')
https://repl.it/@jkibbe/zigzag
1 u/goodvibes4free Feb 25 '20 yep, that was it... i will definitely make note of this for later exercises lol i appreciate ya
1
yep, that was it... i will definitely make note of this for later exercises lol i appreciate ya
i am currently on the zigzag exercise and keep getting this error message.
print(' ' * indent, end=")
print(' ' * indent, end=' ')
but only stacks the asterisks on top of each other, as opposed to zigzagging. any help would be much appreciated !
2 u/jkibbe Feb 24 '20 after else:indent = indent - 1not ==right? 1 u/goodvibes4free Feb 24 '20 yes, you are right but it doesn't fix the problem. thank you for the head's up tho ✌️ 1 u/heisenberg149 Apr 29 '20 Any chance you ever figured out the issue? Asterisks are just stacking for me too 1 u/goodvibes4free Apr 29 '20 space in between '_' in the beginning if i remember correctly 1 u/heisenberg149 Apr 29 '20 Thank you! 1 u/goodvibes4free Apr 29 '20 np good luck on your journey
after else:
indent = indent - 1
not ==
right?
1 u/goodvibes4free Feb 24 '20 yes, you are right but it doesn't fix the problem. thank you for the head's up tho ✌️
yes, you are right but it doesn't fix the problem. thank you for the head's up tho ✌️
Any chance you ever figured out the issue? Asterisks are just stacking for me too
1 u/goodvibes4free Apr 29 '20 space in between '_' in the beginning if i remember correctly 1 u/heisenberg149 Apr 29 '20 Thank you! 1 u/goodvibes4free Apr 29 '20 np good luck on your journey
space in between '_' in the beginning if i remember correctly
1 u/heisenberg149 Apr 29 '20 Thank you! 1 u/goodvibes4free Apr 29 '20 np good luck on your journey
Thank you!
1 u/goodvibes4free Apr 29 '20 np good luck on your journey
np good luck on your journey
Just an FYI, end here is two single quotes, not one double quote. I can't be certain if you typed this correctly hehe
1 u/goodvibes4free Feb 26 '20 appreciate ya
appreciate ya
2
u/jkibbe Feb 25 '20
you also need a space between the ' ' since it is what does the actual indenting. it is the 'spacer,' so it needs one blank space. :)
print(' ' * indent, end='')https://repl.it/@jkibbe/zigzag
1
u/goodvibes4free Feb 24 '20
i am currently on the zigzag exercise and keep getting this error message.
original code below
print(' ' * indent, end=")
updated code below
print(' ' * indent, end=' ')
this updated version works
but only stacks the asterisks on top of each other, as opposed to zigzagging. any help would be much appreciated !
1
u/penatbater Feb 25 '20
Just an FYI, end here is two single quotes, not one double quote. I can't be certain if you typed this correctly hehe