Reverse a string

 string = "hello world"

reversed_string = string[::-1]

print("The reversed string is", reversed_string)


Comments

Popular posts from this blog

Simple Python Program Code for Snake Game

Project 01: Python Code for Music Recommendation with Explanation

Iris Flowers Classification ML Project with Code