Practice Chennai Mathematical Institute, Madras (29.1.3) - String functions
Students

Academic Programs

AI-powered learning for grades 8-12, aligned with major curricula

Professional

Professional Courses

Industry-relevant training in Business, Technology, and Design

Games

Interactive Games

Fun games to boost memory, math, typing, and English skills

Chennai Mathematical Institute, Madras

Practice - Chennai Mathematical Institute, Madras

Learning

Practice Questions

Test your understanding with targeted questions

Question 1 Easy

What is a string?

💡 Hint: Think about text data.

Question 2 Easy

How do you concatenate two strings in Python?

💡 Hint: What would you use to add?

4 more questions available

Interactive Quizzes

Quick quizzes to reinforce your learning

Question 1

What is the result of 'Hello' + 'World'?

HelloWorld
Hello World
HelloWorld!

💡 Hint: Consider how you would join two strings.

Question 2

True or False: The operation string[0:3] will yield the first three characters of a string.

True
False

💡 Hint: Think about how indexing works.

1 more question available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

Create a small program that takes a user’s input and replaces every occurrence of a letter 'e' with '3'.

💡 Hint: What function is used to change characters in strings?

Challenge 2 Hard

Write a program that counts the number of vowels in a given string.

💡 Hint: How will you check if a character is a vowel?

Get performance evaluation

Reference links

Supplementary resources to enhance your learning experience.