Write a program that uses two input statements to get two words as input. Then, print the words on one line separated by a space. Your program's output should only include the two words and a space between them.
Answers
Answer:
Below are the following steps:
- Step 1: Define input value X, and by using input() method, get the value of word 1.
- Step 2: Define input value Y, and by using the input() method, get the value of word 2.
- Step 3: The values are outputted as {} {} (using space in between), by formatting space using Format() method.
Explanation:
plz follow me and mark me as brainlist
plz if u follow me I get inspire for making me a more answer plz follow me and thanks all my answer plz
______________________________________
______________________________________ ___________________
....
...
....
....
....
Answer:
Following is the python code.
word1=str(input("Enter first word\n"))#taking input of word 1..
word2=str(input("Enter second word\n"))#taking input of word 2..
print(word1+" "+word2)#printing both words with space in between.
Explanation:
I have taken two variables word1 and word2 to store the first word and the second word.Taking input in string format that's why I have used str.Then printing both the words in one line with space in between using the print command of python.To print both the word in one line I have used +.
HOPE IT HELPS YOU!!