String Concatenation - Company Name & Location - Python - Spicy Coders

Recent

Friday, October 06, 2017

String Concatenation - Company Name & Location - Python

Two string values S1 and S2 are passed as input. The program must print the output as S1 Technologies S2. 

Input Format: The first line denotes the value of S1. The second line denotes the value of S2. 

Output Format: The first line contains the output as per the description. There must be exactly one space between the words. 

Boundary Conditions: Length of S1 is from 1 to 100. Length of S2 is from 1 to 100. 

Example Input/Output 1: 
Input: 
Wipro 
Bangalore 

Output: 
Wipro Technologies Bangalore 

Example Input/Output 2: 
Input: 
ABC 
Mumbai 

Output: 
ABC Technologies Mumbai

Source Code:

print(input()+" Technologies "+input())

or

s,s1=input(),input()
print("%s Technologies %s" %(s,s1))



No comments:

Post a Comment