9. Introduction to Python Class 9 Questions and Answers
9. Introduction to Python Class 9 Questions and Answers
Answers
1. What is the purpose of Python in AI?
Answer – Python is at the heart of every modern artificial intelligence system.
It’s the programming language of choice for data scientists and engineers
creating the key infrastructure that drives today’s most sophisticated AI
systems. As a result, many companies are using Python to develop their next
generation of AI systems.
6. We can use the Python interpreter to add low-level models. These models
allow programmers to make their tools more efficient by customizing them.
9. What is Variable?
Answer – In a computer language, a variable is a memory area where a value
is stored. A variable in Python is created when a value is assigned to it. In
Python, declaring a variable does not necessitate any additional commands.
10. What are the different rules for declaring the Variable?
Answer – The rules for declaring variable are –
1. A number cannot be used as the first character in the variable name. Only a
character or an underscore can be used as the first character.
2. Python variables are case sensitive.
3. Only alpha-numeric characters and underscores are allowed.
4. There are no special characters permitted.
1. Numbers
2. Sequences
3. Sets
4. Maps