Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
Problems
/
Python Essentials
/
Text Processing
Text Processing
Python Programming
+ Upload a Problem
More in Python Essentials
Dictionaries
Tuples and Sets
Errors and Exceptions
Modules and Libraries
Searching and Sorting
Recursion
Text Processing
Essentials Projects
All Levels
High School (9–10)
High School (11–12)
Undergraduate
General
All
Easy
Medium
Hard
Sort
Mixed
Newest first
Oldest first
A to Z
26 problems
Type:
Any
Conceptual
Numerical
Python-Coded
1.
Write a function above_mean(marks) for a dictionary of name and mark.
High School (9–10), High School (11–12), Undergraduate, General · Essentials Projects, Dictionaries, Errors and Exceptions, Text Processing
StemPy Lab
Medium
2.
Choose a project: a program that keeps the scores of a quiz game and shows who is winning.
High School (9–10), High School (11–12), Undergraduate, General · Essentials Projects, Dictionaries, Errors and Exceptions, Text Processing
StemPy Lab
Easy
3.
Write three small functions square(n), double(n) and negate(n), and a dictionary operations that…
High School (9–10), High School (11–12), Undergraduate, General · Essentials Projects, Dictionaries, Errors and Exceptions, Text Processing
StemPy Lab
Medium
4.
Write a function initials(name) that gives the capital initials of a name, so that "asha kumari…
High School (9–10), High School (11–12), Undergraduate, General · Text Processing
StemPy Lab
Easy
5.
What kind of text?
High School (9–10), High School (11–12), Undergraduate, General · Text Processing
StemPy Lab
Easy
6.
A line has the form name:mark, such as Asha:72.
High School (9–10), High School (11–12), Undergraduate, General · Text Processing
StemPy Lab
Medium
7.
The sorted marks are 64, 78, 78, 85, 92.
High School (9–10), High School (11–12), Undergraduate, General · Essentials Projects, Dictionaries, Errors and Exceptions, Text Processing
StemPy Lab
Hard
8.
What does statistics.mean([]) do? Write safe_mean(values) that gives None for an empty list and the…
High School (9–10), High School (11–12), Undergraduate, General · Essentials Projects, Dictionaries, Errors and Exceptions, Text Processing
StemPy Lab
Hard
9.
Rank the marks {"Asha": 92, "Ravi": 78, "Meera": 85, "Kabir": 64, "Zoya": 78} from the highest.
High School (9–10), High School (11–12), Undergraduate, General · Essentials Projects, Dictionaries, Errors and Exceptions, Text Processing
StemPy Lab
Medium
10.
Five students have the marks 92, 78, 85, 64, 78.
High School (9–10), High School (11–12), Undergraduate, General · Essentials Projects, Dictionaries, Errors and Exceptions, Text Processing
StemPy Lab
Medium
11.
The secret is mjqqt. The letter q appears twice, so the rule guesses that q stands for e.
High School (9–10), High School (11–12), Undergraduate, General · Essentials Projects, Dictionaries, Errors and Exceptions, Text Processing
StemPy Lab
Hard
12.
In a long English secret, the most common letter is x.
High School (9–10), High School (11–12), Undergraduate, General · Essentials Projects, Dictionaries, Errors and Exceptions, Text Processing
StemPy Lab
Medium
13.
Count the letters of balloon with a dictionary.
High School (9–10), High School (11–12), Undergraduate, General · Essentials Projects, Dictionaries, Errors and Exceptions, Text Processing
StemPy Lab
Medium
14.
The book is {"meera": "99887", "asha": "98765", "ravi": "91234", "kabir": "90000"}.
High School (9–10), High School (11–12), Undergraduate, General · Essentials Projects, Dictionaries, Errors and Exceptions, Text Processing
StemPy Lab
Medium
15.
The book has asha and ravi. What happens with contacts["zoya"]?
High School (9–10), High School (11–12), Undergraduate, General · Essentials Projects, Dictionaries, Errors and Exceptions, Text Processing
StemPy Lab
Easy
16.
Write add(name, number) for the contact book.
High School (9–10), High School (11–12), Undergraduate, General · Essentials Projects, Dictionaries, Errors and Exceptions, Text Processing
StemPy Lab
Easy
17.
What do f"{7 / 3:.2f}", f"{5:03d}" and f"[{'ab':>5}]" show?
High School (9–10), High School (11–12), Undergraduate, General · Text Processing
StemPy Lab
Medium
18.
Are listen and silent anagrams? Are apple and papel? Are hello and world?
High School (9–10), High School (11–12), Undergraduate, General · Text Processing
StemPy Lab
Medium
19.
Is "A man a plan a canal Panama" a palindrome, if we ignore spaces and capital letters?
High School (9–10), High School (11–12), Undergraduate, General · Text Processing
StemPy Lab
Hard
20.
Use a Caesar cipher with a shift of 3. Encode HELLO. Decode KHOOR. What does XYZ become?
High School (9–10), High School (11–12), Undergraduate, General · Text Processing
StemPy Lab
Medium
21.
Find the longest word of "statistics makes data speak clearly", and its length.
High School (9–10), High School (11–12), Undergraduate, General · Text Processing
StemPy Lab
Easy
22.
How many vowels (a, e, i, o, u) are in "Programming is fun"?
High School (9–10), High School (11–12), Undergraduate, General · Text Processing
StemPy Lab
Medium
23.
Count the words of "the cat and the hat and the bat" with a dictionary.
High School (9–10), High School (11–12), Undergraduate, General · Text Processing
StemPy Lab
Medium
24.
A user typed " ravi KUMAR ". What is its length?
High School (9–10), High School (11–12), Undergraduate, General · Text Processing
StemPy Lab
Medium
25.
The list ["2025", "10", "13"] holds a year, a month and a day.
High School (9–10), High School (11–12), Undergraduate, General · Text Processing
StemPy Lab
Easy
←
Previous
Page 1 of 2
1
2
Next
→
Showing 1–25 of 26