2.19EXERCISES
2.19.1Theory Questions
Q1.What is the difference between lists and tuples in Python?
Q2.What are the key features of Python?
Q3.What type of language is Python?
Q4.How is Python an interpreted language?
Q5.What is pep 8?
Q6.How is memory managed in Python?
Q7.What is name space in Python?
Q8.What is Python path?
Q9.What are Python modules?
Q10.What are local variables and global variables in Python?
Q11.Is Python case sensitive?
Q12.What is type conversion in Python?
Q13.How can you install Python on Windows and set the path variable?
Q14.Is indentation required in Python?
Q15.What is the difference between Python arrays and lists?
Q16.What are functions in Python?
Q17.What is __init__?
Q18.What is a lambda function?
Q19.What is self in Python?
Q20.How do break, continue, and pass work?
Q21.What does [::-1} do?
Q22.How can you randomize the items of a list in place in Python?
2.19.2Programming Projects
Write the following programs:
Q1.Python program to add two numbers...