New course! Every coder should learn Generative AI!
Try a free lesson0
Anyone plz give me idea to reverse string in python using spell() function.
1 Answer
+ 5
**Error — string object has no attribute spell**
If you want yo reverse a string, you can do something like:
n = "hello"
print(n[::-1])