[Solved] Drawing in Python with ''turtle'' module. Help to make a shorter loop. Combine 10 loops in 1 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

[Solved] Drawing in Python with ''turtle'' module. Help to make a shorter loop. Combine 10 loops in 1

Good day time! I want to make 10 squares using loops. Now my code is 26 lines long and doing just 3 loops. Help me pls to make it shorter. I think it would be nice to make an all code in one loop) PS. Solo doesn't accept turtle module(( https://code.sololearn.com/cQ8C6Xce6jJc/#py

18th Jul 2018, 3:04 PM
Arthur P
Arthur P - avatar
3 Answers
+ 2
I have never used turtle but does this work? Please tell me. I want to know. https://code.sololearn.com/c2RzE1ijzX41/?ref=app
18th Jul 2018, 3:42 PM
Satyam
+ 1
Thank you, sir! You're great! Working perfectly! Little misclick in6th line - there must be ',' instead of ':' but thanks a lot for your help!
19th Jul 2018, 11:41 AM
Arthur P
Arthur P - avatar
+ 1
You're welcome! Thank you for pointing out the mistake!
19th Jul 2018, 12:27 PM
Satyam