Explain the importance and usage of indentation in Python.
[3 marks]Explain below given function with necessary examples. 1. type 2. range 3. zip 4. len
[4 marks]Write a program to get a string input from the user and print the number of words, digits, uppercase letters and lowercase letters in the sentence.
[7 marks]Give the list of Python keywords.
[3 marks]Enlist the string methods.
[4 marks]Write a program to take an input year from the user. Write a function called leap_year which prints whether the input year is a leap year or not.
[7 marks]Write python program to sort numbers in a list in ascending order using bubble sort by passing the list as an argument to the function call.
[7 marks]Explain format string with example.
[3 marks]Explain the continue and break statements with example.
[4 marks]Write a function called rotate_word that takes a string and an integer as parameters, and that function should return a new string containing the letters from the original string “rotated” by the given amount. For example, “cheer” rotated by 7 is “jolly” and “melon” rotated by −10 is “cubed”.
[7 marks]Define arguments and keyword arguments in functions.
[3 marks]Explain Indexing and Slicing in string, list and tuple.
[4 marks]Write a function that prompts the user to enter five numbers, then find the GCD of these numbers.
[7 marks]Describe the traversing of sets with example.
[3 marks]Enlist the functions used for plotting data by matplotlib.
[4 marks]Create a dictionary that contains usernames as the key and passwords as the associated values. Make up the data for five dictionary entries and demonstrate the use of clear and fromkeys() methods.
[7 marks]Define set datatype with appropriate example.
[3 marks]How to create dictionary datatype in Python?1
[4 marks]Create three sets consisting five colors, five flowers, and five values. Select random values from the sets and generate a formatted string as given below. “The garden blossomed with Seven Red Rose.” where Seven, Red and Rose are from sets values, colors, and flowers respectively.
[7 marks]“String is a mutable datatype.” True or False? Justify your answer.
[3 marks]What are the difference applications of NumPy and Pandas libraries.
[4 marks]Write a program to read the first n lines of a file. Prompt the user to enter the value for n.
[7 marks]Give difference between pop, remove and del statement.
[3 marks]Enlist the modes to read and write data from a file.
[4 marks]Write a Python program to read a file and to convert a date of yyyy-mm-dd format to dd-mm-yyyy format.
[7 marks]