Giter Site home page Giter Site logo

scriptsurge / comp-1516-programming-part-1-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from monikaszucs/comp-1516-programming-part-1-python

0.0 0.0 0.0 8.12 MB

Here are the Lessons with the PowerPoint and the Lab questions for the class.

Python 100.00%

comp-1516-programming-part-1-python's Introduction

COMP-1516-Programming-Part-1-Python

Here are the Lessons with the PowerPoint and the Lab questions for the class.

Adding Run

  1. If you started pyCharm for the first time then you will need to set this up.
  2. Click on add configuration at the top right corner.
  3. Click plus icon
  4. Click python
  5. then name it
  6. select script path and default to the file you want it to work with
  7. then clikc on the python interpreter you want
  8. Click apply and ok
  9. now there will be a run icon showing at the top right

Adding Python Interpreter or editing it

  1. File > settings > project pycharm debug
  2. click project interpreter
  3. Then select one from the dropdown
  4. If there is no options yet then click the gear icon > add
  5. Click on system interpreter and find the basic python interpreter and then click ok
  6. Then click ok for the settings

Refractor

  1. 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
  2. Refractor > rename
  3. Type in another variable name
  4. Then click refractor

Keyboard Shortcuts

  1. Find: ctrl+F
  2. Find all changes you made: alt + Shift + C
  3. Duplicates items: ctrl+D
  4. Hold down alt and then it only selects areas within the column as you move up and down.

TODO List

  1. Add comments right beside areas in the code that you know you need to work on
  2. Add the word todo beside the '#' then it will make the notes in a green/yellow color
  3. Then when you click the TODO tab then you will see all the notes you created

Add Expressions by Shortcut

  1. 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.

Debug

Debug Tool

  1. Click on the bug icon at the top right corner near the play button (it looks like a bug)
  2. Beside the console tab at the bottom you will see a Debug tab.

Breakpoints

  1. 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.

Evaluate Expression

  1. open up the debugger
  2. then at the bottom area but above that debugger there should be a calculater looking icon. It is called Evaluating Expression
  3. 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.

comp-1516-programming-part-1-python's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.