Why are you putting ; at the end of every line? This is Python not C (or C++, Java, C#, etc)
@OneByteAtATime7 Жыл бұрын
Why? Because I can. And my code with a ; works the same as code without a ; I've explained in several videos. With ; I get an advantage - When you terminate a statement with a ; you can add more than one statement on a single line. Also, helps me organize my code better and keep things consistent. Also easier when going back and forth between C++, Java, JavaScript. I do the exact same thing when coding in PowerShell. The ; is not required in posh either. But I still use it. Let's me put more than one statement on a line if I want and keeps things consistent. As I've said in multiple videos for PowerShell and Python -, you don't have to terminate your statements with a ; Do what works for you. I'm not a Nazi about coding. You are allowed to be creative. You are allowed to code in your own style.