Python programming l anguage
Download
1 / 10

Python Programming L anguage - PowerPoint PPT Presentation


  • 65 Views
  • Uploaded on

Python Programming L anguage. Code Academy. www.codeacademy.com You must use the following Browser… Google Chrome. What have we learnt so far?. Variables. What are they used for? Data types. What three data types are there? White space. Why is this important?

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Python Programming L anguage' - ron


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

Code academy
Code Academy

www.codeacademy.com

You must use the following Browser…

Google Chrome


What have we learnt so far
What have we learnt so far?

Variables. What are they used for?

Data types. What three data types are there?

White space. Why is this important?

Statements. How do we write a statement?

Comments. How do we write a comment?

Arithmetic What are they? operatorsxx There is 6 in total.


Variables
Variables

Using variables is a way to store values for later


Data t ypes
Data Types

Interger “int”, Float “float”, Booleans “bool”


White space
White Space

  • Python will interpret white space in certain ways. You need to use whitespace following the correct rules.

    • You will need to press the spacebar four times to indent code.

  • If Python doesn’t understand you could end up with…

    • The peasant said, "The witch turned me into a newt!"

    • "The peasant," said the witch, "turned me into a newt!"


Statements
Statements

Statements are written to help us remember bits of code we have written. You write a comment starting with a #.


Comments
Comments

Comments are written to help us remember bits of code we have written. You write a comment starting and finishing with “““ “““.


Arithmetic operators
Arithmetic Operators

Addition

Subtraction

Multiplication

Division

Exponentiation

Modulus

What are they? There is 6 in total.


Case sensitivity
Case Sensitivity

  • You must be careful when you are typing and use the appropriate letter case for the different syntax you are using.

    • Variables are all in lowercase. spam = 6

    • Booleans are title case. bool = True


ad