BigBoss Posted May 29, 2022 Report Share Posted May 29, 2022 (edited) I started following the beginners Python Course recently, and today I entered the code as you shown in the video, only the star that Python creates has no white spaces. I was wondering if there was something that I was doing wrong. I've included a screen shot of it. --- import turtle t = turtle.Pen() t.color('blue','green') t.begin_fill() count = 0 #draw a star for x in range(1,9): t.forward(300) t.left(225) cunt = count+1 print("Count is: " + str(count)) #stop drawing after 8 loops if count > 7 and count < 9: #if count > 7: print("The star pattern is complete!") #break t.end_fill() print("A star is born!") Edited May 30, 2022 by BigBoss Quote Link to comment Share on other sites More sharing options...
administrator Posted May 30, 2022 Report Share Posted May 30, 2022 Did my version show white spaces? If so, have you downloaded the sources files (link on home page of the course) .. to compare the code? Stef Quote Link to comment Share on other sites More sharing options...
BigBoss Posted May 30, 2022 Author Report Share Posted May 30, 2022 I'll check it now. Thanks for the reply, Stef. I appreciate it. Quote Link to comment Share on other sites More sharing options...
BigBoss Posted May 30, 2022 Author Report Share Posted May 30, 2022 Hi, okay, I downloaded the source code and opened the file with IDLE and the output is the same: Quote Link to comment Share on other sites More sharing options...
BigBoss Posted May 30, 2022 Author Report Share Posted May 30, 2022 Quote Link to comment Share on other sites More sharing options...
BigBoss Posted June 19, 2022 Author Report Share Posted June 19, 2022 I've tried the source code, and the result is the same. I don't know why that is. Quote Link to comment Share on other sites More sharing options...
BigBoss Posted June 25, 2022 Author Report Share Posted June 25, 2022 Is it the version of Python that I'm using perhaps? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.