Exercises Python logo
Exercises Python
Course Practice Editor Get started free
  1. Python course
  2. Data types
  3. Reverse chars
29 Data types
Fundamentals concepts
  • Variables
  • Fundamentals of data types
  • Basic data types
  • Type conversion
  • Strings: indexes and slices
  • String methods
  • Formatting the output
  • Comparisons and logical values
  • Random numbers with random
  • Mutability, identity and copies
  • Truth value and safe conversions
Practice exercises
  • Reverse chars
  • Simple geometric calculator
  • Speed unit converter
  • Generate a random number
  • Swap two variables
  • A number in several types
  • Initials
  • Text profile
  • Spaces to hyphens
  • Slices of a word
  • Is it a palindrome?
  • Comparison table
  • Invoice with format
  • Digits of a number
  • Spot the alias
  • Shallow versus deep copy
  • Truthy or falsy
  • Safe conversion to integer
Data types · 12 / 29 Exercise Easy

Reverse chars

Objective

Write a program to ask the user for three letters and display them in reverse order.

Input
a
b
c
Output
c b a

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise
← PreviousTruth value and safe conversions Next →Simple geometric calculator
Exercises Python logo
Exercises Python

Learn Python by solving practical exercises, free and right in your browser.

Get it on Google Play

Learn

  • Home
  • Course
  • Practice
  • Editor

More

  • Features
  • Contact

Account

  • Log in
  • Sign up

Legal

  • Privacy policy
  • Cookies policy
  • Terms and conditions
  • Cookie settings
  • Sitemap

© 2026. Made with 💙 by Jaracoder.

English
  • Español

We use necessary cookies to keep your session. With your consent we also use cookies for advertising and analytics, which keep the course free and help us improve it. Cookies policy