🌐
W3Schools
w3schools.com › python › python_strings_exercises.asp
Python - String Exercises
Remove List Duplicates Reverse a String Add Two Numbers · Python Examples Python Compiler Python Exercises Python Quiz Python Challenges Python Server Python Syllabus Python Study Plan Python Interview Q&A Python Bootcamp Python Certificate Python Training
🌐
PYnative
pynative.com › home › python exercises › python string exercise with solutions
Python String Exercise with Solutions – String Programs for Practice
March 13, 2025 - It contains 18 Python string programs, questions, problems, and challenges to practice. The solution is provided for all questions. ... Use Online Code Editor to solve exercise questions.
Discussions

Beginner Question - String Manipulation in Python
It should be person["bmi"] = person["weight"] / person["height"] ** 2 More on reddit.com
🌐 r/learnpython
7
4
December 18, 2022
python exercises
Thoughts: Codewars Advent of Code r/dailyprogrammer (not updated "daily" anymore, but go through the history) More on reddit.com
🌐 r/learnpython
47
134
August 21, 2022
Good Python Exercises?
Here are some often recommended resources: Exercism , Hackinscience and Practicepython — these are all beginner friendly and difficulty levels are marked Adventofcode , Codewars , Python Morsels — includes more challenging exercises for intermediate to advanced level users Checkio , Codingame , Codecombat — gaming based challenges /r/dailyprogrammer — not active currently, but there's plenty of past challenges with discussions And here are some resources for projects: Projects with solutions — algorithms, data structures, networking, security, databases, etc Project based learning — web applications, bots, data science, machine learning, etc Books: The Big Book of Small Python Projects Tiny Python Projects /r/learnpython: What do you automate with Python at home? More on reddit.com
🌐 r/learnpython
55
367
August 11, 2022
i don't get this string exercise
Let me walk you through the code: name = 'World' Somewhere in memory, Python creates a new string object with the characters W, o, r, l, d. A variable is created with the name name and is assigned to reference the new string object. line = '-' Somewhere in memory, Python creates a new string object with the character -. A variable is created with the name line and is assigned to reference the new string object. for char in name: A loop is created which iterates over the string object referenced by name. On each iteration, a new string object is created to hold the single character from the current iteration, and char is assigned the memory location of that single character object. line = line + char The expression on the right is evaluated first. The two string objects referenced by the two variables are retrieved and concatenated (which is what the __add__ method for the str class does for the + operator). This creates a new string object somewhere in memory. The variable line is re-assigned to reference the new string object. The string object it referenced before this now has nothing referencing it and so Python can reclaim the memory occupied by that older object (deleting the object). Strings are immutable, so a string object cannot be changed. You have to create new string objects. You should no be able to see that the character "-" is not going to appear between each letter because it exists alone only on the first assignment to line. print(line) Python passes the reference held by line to the print function which uses the default representation for output whatever latest iteration of the string object line references at that point. More on reddit.com
🌐 r/learnpython
4
2
August 16, 2022
🌐
w3resource
w3resource.com › python-exercises › string
Python Data Type: String - Exercises, Practice, Solution - w3resource
June 12, 2025 - Python String Exercises, Practice, Solution - Improve your Python string handling skills with these 113 exercises, each with a sample solution. Learn how to calculate string length, count character frequencies, extract substrings, replace ...
🌐
Medium
medium.com › @nishithakalathil › python-string-exercises-788ae4e1922d
Python String Exercises. This page is your ticket to becoming a… | by Nishitha Kalathil | Medium
September 26, 2023 - Python String Exercises This page is your ticket to becoming a pro at working with words and text in Python. No matter if you’re just starting or want to level up your skills, we’ve got you …
🌐
Scribd
scribd.com › document › 933462024 › Python-Exercise-Day-3
Python String Manipulation Exercises | PDF | String (Computer Science) | Letter Case
The document contains a list of 38 Python exercises aimed at beginners, covering various string manipulation techniques and methods. Exercises include tasks such as concatenating strings, changing case, slicing, and using string methods like find, replace, and split.
🌐
Real Python
realpython.com › courses › python-exercises-string-methods
Python Basics Exercises: Strings and String Methods – Real Python
December 1, 2023 - Course Slides (.pdf) Sample Code (.zip) Related Learning Paths: Python Basics: Introduction to Python · Start Now · 7 Lessons 14m · 1. Python Basics Exercises: Strings and String Methods (Overview)02:47 · 2. What Is a String? (Exercise)00:50 · 3. What Is a String?
🌐
Scribd
scribd.com › document › 959338690 › EXP2-0901ME231078-Ipynb-Colab
Python String Exercises and Solutions | PDF | Collation | Typography
EXP2 0901ME231078.Ipynb Colab - Free download as PDF File (.pdf), Text File (.txt) or read online for free. The document contains Python exercises focused on string manipulation. It includes problems such as creating a string from specific ...
🌐
Python Lobby
pythonlobby.com › home › python string exercises with solution
Python String Exercises with Solution - Python Lobby
April 27, 2021 - These programming exercises have been structured and designed in a beginner-friendly way, focusing on the core concepts of string data type operations. The main idea behind solving these questions is to make your concept more clear and to improve ...
Find elsewhere
🌐
GeeksforGeeks
geeksforgeeks.org › python-string-exercise
Python String Exercise - GeeksforGeeks
December 19, 2024 - To help you improve, try these Python exercises with solutions to test ... List OperationsAccess List ItemChange List itemReplace Values in a List in PythonAppend Items to a listInsert Items to a listExtend Items to a listRemove Item from a listClear entire listBasic List programsMaximum of two numbersWays to find length of listMinimum of two numbersTo interchange first an ... Basic String ProgramsCheck whether the string is Symmetrical or PalindromeFind length of StringReverse words in a given StringRemove i’th character from stringAvoid Spaces in string lengthPrint even length words in a stringUppercase Half StringCapitalize the first and last character of each word in
🌐
Tutorjoes
tutorjoes.in › python_programming_tutorial › string_programs_in_python
Python : String - Exercises and Solution
If the substring is not found in the given string Not found. ... 43. Write a Python program to print four values decimal, octal, hexadecimal (capitalized), binary in a single line of a given integer.
🌐
Codesolid
codesolid.com › python-string-examples-tutorial-and-practice-exercises
Python String Examples: Tutorial and Practice Exercises — CodeSolid.com 0.1 documentation
In this tutorial, we’ve covered in detail what strings are in Python and the different mechanisms for working with them. Including string operators, built-in functions and methods, indexing, and slicing. Make sure to go through and solve all of these exercises.
🌐
Freelearningpoints
freelearningpoints.com › python › exercises › basic
Python String Exercise and Answer - freelearningpoints.com
Python Exercises: Python String Exercises Python List Exercises Python Library Exercises Python Sets Exercises Python Array Exercises Python Condition Statement Exercises Python Lambda Exercises Python Function Exercises Python File Input Output Exercises Python Tkinter Exercises Numpy Exercises: ...
🌐
Tutorialspoint
tutorialspoint.com › home › python › python string exercises
Python - String Exercises
February 21, 2009 - Explore a comprehensive collection of Python string exercises to enhance your programming skills. Solve practical problems and master string manipulation in Python.
🌐
Kaggle
kaggle.com › code › ephemerai › python-exercise-strings-and-dictionaries
[Python] Exercise: Strings and Dictionaries
Checking your browser before accessing www.kaggle.com · Click here if you are not automatically redirected after 5 seconds
🌐
Scribd
scribd.com › document › 676289750 › Python-String-Exercises
Python - String Exercises | PDF
Python - String Exercises - Free download as PDF File (.pdf), Text File (.txt) or read online for free.
🌐
LearnPython.com
learnpython.com › blog › python-string-exercises
15 Python String Exercises for Beginners | LearnPython.com
April 29, 2024 - These Python string practice problems are taken directly from our courses Working with Strings in Python and Python Practice: Word Games. Be sure to check the courses out if you’re on the lookout for even more coding practice. Together, they include over 20 hours of content and 84 Python string exercises, including full solutions and explanations.
🌐
PYnative
pynative.com › home › python exercises
Python Exercises, Practice, Challenges [385+ Exercises] – PYnative
January 7, 2026 - Solve Python string coding questions to learn and practice string operations and manipulations. ... Practice coding questions on widely used Python types such as List, Set, Dictionary, and Tuple. ... This exercise contains coding questions to learn and practice list operations, manipulations, ...
🌐
HolyPython
holypython.com › home › beginner python exercises › exercise 9: strings
Improve your Python skills with Exercise 9: Strings | HolyPython.com
April 4, 2024 - Assign the string below to the variable in the exercise. ... All you need to do is make sure your string is inside quotation marks. ... By using first, second and last characters of the string, create a new string. ... You can add strings by using (+) character. ... You can’t directly change a string, because they’re immutable. But you can use .replace() method and assign a new string to the same variable. ... Check out Holy Python AI+ for amazing Python learning tools.
🌐
Jeshuat
jeshuat.github.io › Experimentation1 › content › 06_strings › strings_python_exercises.html
Python exercises: Strings — Experimentation 1
If you do not know where to start, assume you want to print the string “1234” and write out what should be the values (use a piece of paper!), like this sketch:
🌐
CodeChef
codechef.com › blogs › strings-in-python
Python String (Examples and Practice)
Learn the basics of Python strings in this beginner-friendly guide. Discover how to create, manipulate, and slice strings with easy-to-follow examples and coding tasks.