Apr-13-2022, 11:40 PM
definitions = { "For loops": "For loops allow you to run a block of code repeatedly, just like while loops. However, for loops run " "a block of code a set number of times.", "Functions": "A function is a block of code repeatedly, just like while loops. However, for loops run a block of" "code a set number of times", "If statements": "An if statement runs a block of code based on whether or not a condition is true.", "Loops": "Loops check a condition and then run a code block. The loop will continue to check and run until a " "specified condition is reached.", "Python": "Python is a programming language that's currently becoming more and more powerful with every new library" " added to its collection." }Hey everyone, I'm going through this book by Eric Mathes, and I'm trying to develop good habits to use in the future. Currently, I'm working on dictionaries. I feel like I've formatted this simple code correctly, however, I receive an error from PyCharm stating, "PEP 8: E101 indentation contains mixed spaces and tabs".
Is this formatting okay? Or is something wrong with it so I can catch this habit and fix it? Thanks so much for your help!