.Consider a string“Anant kumar Mishra”and Write A Program to print it as a“Anant Mishra”.
Answers
Answered by
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
Computer Science,
1 month ago
Math,
1 month ago
Social Sciences,
2 months ago
Social Sciences,
2 months ago
Math,
10 months ago
Hindi,
10 months ago