[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-654539-105":59,"doc-detail-654539-en":130},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","drawing-shapes-with-edublocks-edublocks-project-step-1-4","Drawing shapes with EduBlocks - EduBlocks project - Step 1-4","","Student workbook guiding learners to use EduBlocks to create a simple stars and circles coding project in Python. The workbook introduces the Turtle module as a drawing board, configures screen and pen settings, and explains RGB color values for background selection. It then walks through building loops and definitions to draw stars and circles, collecting user input for circle size, adding conditional Y/N logic, and finishing by running the code to visualize the result.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/drawing-shapes-with-edublocks-edublocks-project-step-1-4/654539/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/drawing-shapes-with-edublocks-edublocks-project-step-1-4/654539.png","ImageObject",300,407,{"name":92,"@type":93},"fresh2021","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-10-26","2026-10-25",true,{"@type":102,"interactionType":103,"userInteractionCount":8},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the “Turtle” feature used for in this project?","Question",{"text":112,"@type":113},"Turtle acts like a drawing board in Python, letting a pen draw and move around the screen using commands.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How do the RGB values relate to the screen background color?",{"text":117,"@type":113},"The values (255, 0, 0), (0, 255, 0), and (0, 0, 255) correspond to Red, Green, and Blue, and they are used to set the screen background color.",{"name":119,"@type":110,"acceptedAnswer":120},"How does the workbook handle user choices for circle size and gameplay?",{"text":121,"@type":113},"It uses an input block to ask for circle size and assigns it to a variable, then draws stars and circles with loops. It also uses if/else logic to run the drawing code when the player answers Y and print alternative text otherwise.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},654539,1793030440,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":8,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":34,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":143,"read_time":144},962093912154,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","Student workbook Drawing shapes with EduBlocks  \nCode Playground  \nDrawing shapes with EduBlocks  \nEduBlocks project  \nEduBlocks is a free tool that helps anyone learn how to code with text-based languages like Python, using familiar block coding as used in Scratch.  \nThis session will allow you to use blocks to create colourful stars and circles and be able to see what block coding looks like in Python coding language.  \nThis project is designed for EduBlocks 4.0 and will allow you to code a simple stars and circles pattern.  \nHope you enjoy the project!  \nCode Playground  Previous | 2 | Next page   \nDrawing shapes with EduBlocks  \nEduBlocks project  \nStep 1  \n“Turtle” is a Python feature like a drawing board, which lets us command a pen to draw and move around the board using set functions.  \nTo get started, we need to build the background for our pen, or turtle as we will now call it.  \nImport the turtle, then we need to identify the turtle and screen settings.  \nThe numbers (255, 0, 0) in the screen colour block are the Red, Green, Blue (RGB) colour values, so:  \n255, 0, 0 is Red  \n0, 255, 0 is Green  \n0, 0, 255 is Blue  \nWe have changed the screen background colour to “black.”  \nYou can experiment with the different RGB colour values to make your own, or alternatively add the name of the colour in quotation marks. Quotation symbols are used to create a string object in Python which assign it to a variable. In this code,“black” is assigned to the screen background and the list of colours to the colours variable.  \nThe final step here is to add a block to alter the speed of the turtle.  \nBlock code  \nPython code  \nCode Playground  Previous | 3 | Next page   \nDrawing shapes with EduBlocks  \nEduBlocks project  \nStep 2  \nNow we have coded the background and defined the turtle, we need to add code to tell the turtle where to move to.  \nFirst though, we are going to ask the player if they would like to play. If they answer Y, then the code inside the if condition will run.  \nWe’ll start by adding the code for the stars using definition, loop and turtle movement blocks.  \nThen we do the same for the circles.  \nPython code  \nCode Playground  \nBlock code  \nPrevious | 4 | Next page   \nDrawing shapes with EduBlocks  \nEduBlocks project  \nStep 3  \nWe now need to add code to tell the turtle what colours we would like to use. First though, we are going to ask the player what size circles they would like drawing, by using an input block and assigning the integer to a new variable called number.  \nAdd a loop to draw 4 stars in each colour, set their colours, then add another loop to draw the 8 circles.  \nThe number variable in the circle code will draw the size circle that the user has chosen.  \nWe now need a separate piece of code if the player chooses N (or anything else) .  \nBy adding an else condition, we can then add some text to be printed instead.  \nPython code  \nBlock code  \nCode Playground  Previous | 5 | Next page   \nDrawing shapes with EduBlocks  \nEduBlocks project  \nStep 4  \nThat’s it! You have coded the shapes! Now run your code to see what it looks like!  \nCode Playground  Previous | 6 | Next page   \nIntroduction The Code Notes  \nNotes  \nCode Playground  \nBarclays Bank UK PLC is authorised by the Prudential Regulation Authority and regulatedby the Financial Conduct Authority and the Prudential Regulation Authority (Financial Services Register No. 759676) . Registered in England, Registered No.9740322. Registered Office 1 Churchill Place, London E145HP.  \n Previous | 7 |","cbCaipMfj8D9Ji3x","https://ap.wps.com/l/cbCaipMfj8D9Ji3x","pdf",420077,"English","# Introduction\n## EduBlocks project overview\n# Step 1\n## Turtle and screen setup\n## RGB background colors\n# Step 2\n## Movement for stars and circles\n# Step 3\n## User input, loops, and colors\n## Conditional else output\n# Step 4\n## Run the code and view shapes","[{\"question\":\"What is the “Turtle” feature used for in this project?\",\"answer\":\"Turtle acts like a drawing board in Python, letting a pen draw and move around the screen using commands.\"},{\"question\":\"How do the RGB values relate to the screen background color?\",\"answer\":\"The values (255, 0, 0), (0, 255, 0), and (0, 0, 255) correspond to Red, Green, and Blue, and they are used to set the screen background color.\"},{\"question\":\"How does the workbook handle user choices for circle size and gameplay?\",\"answer\":\"It uses an input block to ask for circle size and assigns it to a variable, then draws stars and circles with loops. It also uses if/else logic to run the drawing code when the player answers Y and print alternative text otherwise.\"}]","Drawing shapes with EduBlocks - EduBlocks project - Step 1-4 | PDF",1792924751,18]