Python has advantages like being easy to learn, having extensive libraries, and being suitable for different types of applications. However, it has disadvantages like being slower than other languages and requiring more memory. Python code is saved with a .py extension and uses keywords like if, else, and while. It supports octal, hexadecimal, real, and exponential integer literals. Punctuators are used to define syntax and separate tokens in a programming language. Dynamic typing allows variables to refer to objects of different types during runtime.
Python has advantages like being easy to learn, having extensive libraries, and being suitable for different types of applications. However, it has disadvantages like being slower than other languages and requiring more memory. Python code is saved with a .py extension and uses keywords like if, else, and while. It supports octal, hexadecimal, real, and exponential integer literals. Punctuators are used to define syntax and separate tokens in a programming language. Dynamic typing allows variables to refer to objects of different types during runtime.
Python has advantages like being easy to learn, having extensive libraries, and being suitable for different types of applications. However, it has disadvantages like being slower than other languages and requiring more memory. Python code is saved with a .py extension and uses keywords like if, else, and while. It supports octal, hexadecimal, real, and exponential integer literals. Punctuators are used to define syntax and separate tokens in a programming language. Dynamic typing allows variables to refer to objects of different types during runtime.
Time: 40 Min. Max. Marks: 20 1. Write 5 advantage and 3 disadvantage of python programming language. 4 2. Write the name of two ways of using python programming language. 1 3. What extension do we use when we saving python programming file? 1 4. Write example of any 6 keyword, 2 valid and 2 invalid identifier. 5 5. Write octal integer literal and hexadecimal integer literal of decimal integer 59. 2 6. 152 is an example of real literal. True or False? 1 7. Write the decimal integer literal of 5.E2. 1 8. What will be the output of following code? 2 x=12,32,500 y=22E03,20 type(x) y 9. Why punctuators are used in programming language? 1 10. What is dynamic typing? 2