![]() ![]() ![]() That's because areas and areas_copy point to the same list. If you hit Run Code you'll see that, although you've changed areas_copy, the change also takes effect in the areas list. Next, the first element in the areas_copy list is changed and the areas list is printed out. The Python code in the script already creates a list with the name areas and a copy named areas_copy. In this exercise you'll get some hands-on experience with this. Type: NormalExercise key: af72db9915 lang: python xp: 100 skills:Īt the end of the video, Hugo explained how Python lists work behind the scenes. Success_msg("Great! Get ready to learn about list subsetting!") Has_printout(0, not_printed_msg = "_JINJA_:Have you used `` to print out the type of the `house` variable?") The list shouldn't contain anything else!" Predef_msg = "Don't remove or edit the predefined variables!"Īreas_msg = "Define `areas` as the list containing all the area variables, in the correct order: ``. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |