From the course: Python Practice: Real-World Coding Challenges
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Challenge: Structuring scribes - Python Tutorial
From the course: Python Practice: Real-World Coding Challenges
Challenge: Structuring scribes
(bright music) - It's so exhausting writing all this code by hand, isn't it? In this challenge, I want you to create a system that can automate all those little object creation and function calling tasks for you. Create a data structure that defines some number of scribes with instructions for each of those scribes and then create a function that takes in all of that data and the data structure and makes the whole thing go. You don't necessarily have to include the canvas definition in your data structure, but you can if you want. For example, you can make a list of dictionary objects where each dictionary defines a scribe plus some instructions for it to move around. Remember to include the starting direction for each scribe and maybe give them some fun names. Also, if you want one of your scribes to say, move forward 10 times, please don't literally type the word forward over and over and over again.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.