*Python Bites!*
I started the quarantine with MATLAB Scripting, then moved to LabVIEW Fundamentals and now, my new obsession is with Python.
The most amazing thing happened when my team at work started a Programming Challenge which put my learning into fast-track mode. Here's what I learned:
I was super excited to see my score after my first submission and guess what, I received a ZERO. Black-box testing was performed and I hardcoded the "User Input". ?? I had focused so much on the end result that I had forgotten the first step.
- This leads to my first lesson in writing a program. Break it down! The step-by-step Algorithm is the Magic mantra of improving your logical understanding and framing of your code.
- Using List and Dictionary - You can loop over the elements through indexing, while the dictionary uses keys and values. If you want to create a game or check the repetition of elements, the dictionary is your best friend!
- The beauty of indentation - If you want to look at a clean and readable code. This teaches you!
- “While true:” - This lets the loop run infinitely until “break” is used.
- Defining variables - Use variable names related to the program, avoid numbers, no spaces. Camelcase and underscores create the neatest names in my opinion.
- As soon as you see a problem. Don't google! try asking the problem questions like, "What does it want to output?", "How can I break it down to its smallest components?
I hope you found this useful. The resources that I am using to learn are in the comments below. Happy learning!
"Sometimes simple things are the most difficult things to achieve" - Keanu Reeves
Thank you! Have a great week!
Thanks for sharing Lykha, we wish you the best!
E-Mobility | Motor Control | System Engineering | E-drive Drivability & Performance
4 年What resources did you use for MATLAB scripting
Kotak Mahindra bank Deputy manager
4 年Yes bt join link
Software Process Automation Engineer
4 年what projects you have done?
Electronics Engineer at Johnson Electric
4 年Resources used for learning: For Practice: https://www.hackerrank.com/ For Intro and Syntax: https://www.w3schools.com/python Like this comment so that it stays on top.