Computer Science, asked by sacchit2727, 3 months ago

Program to change the first
and the last character of the
string with each other

python program​

Answers

Answered by Nilanjit
0

str = input("Enter a string : ")

new_str = str[-1:] + str[1:-1] + str[:1]

print(new_str)

Answered by abhishah538
1

Answer:

Fun idk Kash he is in an join date 20th December to February to the day dear Mr I will send it by clicking here

Explanation:

jssjjs

Similar questions