Python Basics- Lesson 1

Congratulations and Welcome to class X  πŸ‘

This is our first e-class ( both for you, as a student and me, as a teacher). 😎
What a nice way to begin  Computer Applications. 

Lets take a review of the Basics of Python learnt in class IX . A firm πŸ’ͺπŸ’ͺ understanding of the basics will help create a programmer in you.  

By the end of this session, we would be able to identify the basic elements of a python program.

Please take down the above details shared neatly in your CA register. Let it be presented in the same way as it appears on the blog. Your handwriting must be neat.
                                                       
Python is 
  • Widely used
  • interpreted (An interpreter converts the source code to machine code)
  • object oriented
  • High level programming language( Closer to the human beings)
  • created by Guido Van Rossum 
  • released on February 20,1991
Key Features
  1. Simple- Written in simple English statements. Therefore, it is easy to understand the syntax( way of writing)
  2. Easy to learn- structure of program is very simple and easy to create. 
  3. Platform independent and portable- Python can work on any Operating System.
  4. Open Source- It is available free and can be downloaded free from www.python.org 
  5. Dynamically typed- There is no need to define the type(int or float) of the variable. It is automatically defined based on the use.
  6. Huge Library-It has large inbuilt library which is pre-built and is capable of being portable.
  7. Procedure and Object oriented- The programs can be built using features like functions, procedures, classes and objects also.
IMPORTANT TERMS
  1. TOKENS
  • They are the smallest unit of a program. 
  • Characters are translated into a sequence of tokens.
  •  There are following tokens in Python:
    • keywords
    • literals
    • identifiers
    • operators
    • punctuators
2. Keywords-
    • These are special words which are reserved by Python .
    • They have specific meaning.
    • We are not allowed to use keywords as variables in Python. 
    • Keywords are case-sensitive.
3. Identifiers-
  • These are user-defined names to represent entities like variables, functions etc.
  • We have rules to follow in order to create valid identifiers
     4. Literals- 
  •  These are the data that is given to a variable or a constant.A constant does not change while a variable gets its name from the fact that its value can change.
  • The various types of literals are
    • Strings
    • Numeric
    • Boolean
    • Special
    5. Operators
  • Operators are  the symbols which perform the operation on some values.(Eg- in a+b, "+" is an operator) 
  • Values are known as operands.(Eg.- in a+b, a an b are operands)
  • types of operators:
    • unary-operator acts on single variable 
    • binary-operator acts on two variables
    • tertiary- operator acts on three variables
6. Punctuators- These are symbols that are used in programming languages to organize sentence structures


After having taken a tour of the basics, lets test our understanding with the following online form:
Click here : πŸ‘‡
Lets take an online test ( Give yourself only 5 minutes to fill the response)

NOTE- You can view the content of the blog after the class is over also

Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. excellent blog Geeta. Thank you
    Mrs sheel

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Maam do we have to copy the whole blog tejas

    ReplyDelete
  5. Ma'am the online test dosen't work it says you have to be in owners organisation

    ReplyDelete
    Replies
    1. I have tested it. Still I will recheck. try it after the classes are over. I will fix it

      Delete
  6. Welcome boys. From tom we will take up flow charting and coding. sharing of today is what we studied in class IX.

    ReplyDelete
  7. This is primarily for understanding and learning as this is the essential theory related to Python

    ReplyDelete
  8. Please try the online test. I have tried to fix

    ReplyDelete
  9. ma'am, the online test link is now working

    ReplyDelete
  10. ma'am, i've completed the online test and submitted the answers

    ReplyDelete
  11. Yes received response from brian and Geet. Others pls note I am waiting

    ReplyDelete
  12. All pls note that the content will remain on the blog. So, icase u have not been able to complete the written work, you can come back and complete the same. The online test will not be avilable after the class

    ReplyDelete
  13. ma'am, do we have to copy the above given notes in the 10th CA register??
    if yes, can we copy them right now while the other students are submitting the answers??
    -Geet

    ReplyDelete
    Replies
    1. Yes dear. You will have to manage time and content. God bless

      Delete
  14. mam done with the test what we have to do

    ReplyDelete
    Replies
    1. Make sure you have written the content on the blog. I will not be giving more time to these topics. Doubts , if any, will be taken up now. Join the next class at the time specified.

      Delete
  15. I hope you can relate to the concepts by now. Pls feel free to post queries

    ReplyDelete
  16. Ma'am, everything is clear till now. If any doubt arises, will surely ask for your helpπŸ™‚

    ReplyDelete
    Replies
    1. God Bless you. Who is this pls? Name not mentioned

      Delete
  17. mam I didn't understood punctuators

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. all types of brackets-(),{},[ ] etc , ",", ".",:;" etc are punctuators

      Delete
  18. Good morning ma'am
    Unable to understand please guide me as soon as possible

    ReplyDelete
    Replies
    1. Pls share what is not clear. Share your name also

      Delete
  19. Ma'am, everything is clear till now. If any doubt arises, will surely ask for your helpπŸ™‚
    -Geet

    ReplyDelete
  20. This comment has been removed by the author.

    ReplyDelete
  21. This comment has been removed by the author.

    ReplyDelete
  22. Thank you mam this is Aaron David i have submitted my work

    ReplyDelete

Post a Comment

Popular posts from this blog

HOLIDAY HW