Python VVIMP All Answers
Python VVIMP All Answers
2 Marks Questions
- 'r' - read, 'w' - write, 'a' - append, 'x' - create, 'b' - binary mode, '+' - read and write.
- list.sort()
4 Marks Questions
1. Building Blocks
- Identifiers: names used for variables, functions, etc.
- Operators: +, -, *, / etc.
- pass: placeholder.
7. File modes
- 'r': read, 'w': write, 'a': append, 'b': binary, 'x': exclusive creation.
8. Exception handling
6 Marks Questions
2. File operations
- Read from file A and write to file B using open() and read/write methods.
4. User-defined package
5. Module program
6. Palindrome program
9. Sum of digits
Extras