`

>>>backwards('real') 

laer
besides I want to print it in uppercase
LAER

`

A well known snippet

>>> 'real'[::-1]
'laer'
>>> 
x = "real"
y = ""
for i in range(len(x)-1, 0, -1):
    y.append(x[i])
y = y.upper()
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.