G7 programing language Teacher / Shamsa Hassan Alhassouni
What we will Learn today? What is python ? Why to learn python? Understand the program interface Understand the terms (syntax – debugging – functioning )
What is python ? It is a programing language that can be used to build applications and games.
Why we learn python ? It’s powerful, modern programing language. Used by many famous organizations such as YouTube and NASA. It is one of three languages that can be used to write Google Apps.
Opne file (“hello) Print (“hello” Activity: Discover what is wrong or missing in the following statements Opne file (“hello) Print (“hello”
syntax of python programming language Syntax refer to the spelling and grammar of programming language. Your code must be typed in case python language
Syntax error Syntax errors means when you try to run your program and it will not run due to spelling mistakes or missing characters. Programmer call these ‘bugs’ Common errors: Not close the speech marks “ ” ‘ Symbols instead of “ ” Missing a brackets ( ) Spelling mistake Incorrect capital letters
Debugging Functions Output An important part of programming is testing the program and 'debugging' (which means removing the bugs) Functions python does all the fancy computer things to make whatever is shown between the brackets display on the screen. Output When something is processed by the computer and retuned back
Practical Activity
Activity P-30: 1. Open the python edu Select ‘Create new project’ and give your project a name (grade7-1) Select ‘this window’ Click file > new > python file Give the python file a name. (hello-fatima) Type this exactly as you see it 5. Right click and press run. Or press the green triangle at the top
Python Program Interface
Navigation Code Output
Quick Quiz Which of these line of code is correct? 1.Print ("Hello world!") 2.print ("hello world!") 3.print (hello world!) 4.print "hello world!"
How easy did find the python?