Category solved model papers

Saving variables with shelve module.

6. Briefly explain saving variables with shelve module. Answer: Saving Variables with shelve Module The shelve module allows storing Python objects (like lists, dictionaries, etc.) in a file.It works like…

Explain the following with examples

2. Explain with examples:i) isalpha()ii) isalnum()iii) isspace()iv) isdcimalv) istitle Answer: String Methods i) isalpha() Returns True if all characters in the string are only alphabets (A–Z or a–z). ii) isalnum()…

Explain join() and split() method with examples.

1. Explain join() and split() method with examples. Answer: join() Method Used to combine a list of strings into one single string.Syntax: ‘separator’.join(list) Example: Here, ‘ ‘ (a space) is…