Download presentation
Presentation is loading. Please wait.
1
Python Programming Language
2
www.codeacademy.com You must use the following Browser… Google Chrome
3
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.
4
Variables Using variables is a way to store values for later
5
Data Types Interger “int”, Float “float”, Booleans “bool”
6
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!"
7
Statements Statements are written to help us remember bits of code we have written. You write a comment starting with a #.
8
Comments Comments are written to help us remember bits of code we have written. You write a comment starting and finishing with “““ “““.
9
Arithmetic Operators What are they? There is 6 in total. Addition
Subtraction Multiplication Division Exponentiation Modulus
10
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.