Python Programming Exam Paper
Python Programming Exam Paper
Marks
Q1. Count all letters, digits, and special symbols from a given [10]
string
str1 = "I@#ma26rt^&ic5us"
Expected Output:
Q5. Given below are the list of positive and negative words. Also, [10]
a list of tweets is provided. Separate out the positive and
negative comments.
Q9. Check for Maximum petal_length and convert it in to 7.2 and [10]
min petal_length and convert it in to 1.2
Q10. Perform right join to combine values based on the 'ID' in the [10]
two dataframes.
Use the dataframe given below, read the DataFrame with the
help of clipboard function.
ID Candidate_Name Subject
ID City Subject_Score
101 Delhi 89
102 Mumbai 78
103 Delhi 77
104 Chennai 87
105 Hyderabad 87
108 Delhi 84