Computer Science, asked by ramsmedicine, 1 month ago

Consider the two strings:
str1="My name is ___"

str2="I am from __"

Write a program to accept your name and city in the above strings and display the ouput by joining both the strings using + operator.



pls tell me the correct answer

Answers

Answered by Anonymous
1

Required programme :-

s1 = input("Enter your name: ")

s2 = input("From where are you? ")

str1 = (f"My name is {s1} ")

str2 = (f"I am from {s2}")

print(str1 + str2)

Similar questions