Computer Science, asked by kanpurhardwareandtoo, 2 months ago

.Consider a string“Anant kumar Mishra”and Write A Program to print it as a“Anant Mishra”.​

Answers

Answered by RJDJ0261
0

Answer:

original_string = "Anant Kumar Mishra"

split_string = original_string.split()

new_string = f"{split_string[0]} {split_string[2]}"

print(new_string)

Similar questions