You have a list of five numbers. person = ["Alex", 25, "Mumbai", True, "alex@email.com"] Quick question. What is person[3]? You have to count. Index 0 is the name. Index 1 is age. Index 2 is city. Index 3 is... the boolean? What does True mean here? Is that married? Is that a student? Is that something else entirely? You wrote this code yourself and you already can't remember what index 3 mean
Dictionaries: When a List Just Isn't Enough
Akhilesh·Dev.to··1 min read
D
Continue reading on Dev.to
This article was sourced from Dev.to's RSS feed. Visit the original for the complete story.