Here are the Lessons with the PowerPoint and the Lab questions for the class.
- If you started pyCharm for the first time then you will need to set this up.
- Click on add configuration at the top right corner.
- Click plus icon
- Click python
- then name it
- select script path and default to the file you want it to work with
- then clikc on the python interpreter you want
- Click apply and ok
- now there will be a run icon showing at the top right
- File > settings > project pycharm debug
- click project interpreter
- Then select one from the dropdown
- If there is no options yet then click the gear icon > add
- Click on system interpreter and find the basic python interpreter and then click ok
- Then click ok for the settings
- if you make a variable name and you want to change it but its linked to many other areas in your code you can first hightlight then right click it
- Refractor > rename
- Type in another variable name
- Then click refractor
- Find: ctrl+F
- Find all changes you made: alt + Shift + C
- Duplicates items: ctrl+D
- Hold down alt and then it only selects areas within the column as you move up and down.
- Add comments right beside areas in the code that you know you need to work on
- Add the word todo beside the '#' then it will make the notes in a green/yellow color
- Then when you click the TODO tab then you will see all the notes you created
- create just a the varaiable under the variable then highlight it and hold ctrl+alt+T then you can select what expression to add it to.
- Click on the bug icon at the top right corner near the play button (it looks like a bug)
- Beside the console tab at the bottom you will see a Debug tab.
- right beside the line number you can hover and click to createa a red dot. This will create a break point for debugging later. It break the execution of the program at that point. It will stop then you will see the debugger open and list varaibles.
- open up the debugger
- then at the bottom area but above that debugger there should be a calculater looking icon. It is called Evaluating Expression
- You can evaluate anything in the current scope. This will show the value to see it right away to see exact value and type without printing it all the time.