Ask Question
30 May, 16:39

Write a single statement to print: user_word, user_number. Note that there is no space between the comma and user_number.

+1
Answers (1)
  1. 30 May, 20:13
    0
    The program to this question as follows:

    Program:

    user_word = str (input ("Enter your name: ")) #input user_word

    user_number = int (input ("Enter your number: ")) #input user_number

    print (user_word+','+str (user_number)) #print value

    Output:

    Enter your name: data

    Enter your number: 45

    data, 45

    Explanation:

    In the above python program code, two variable is defined, that are "user_word and user_number", in which variable "user_word" is a string variable, and user_number is an integer variable. The both variable is used for taking value from user ends. In the next line, the print function is used that print both variable value, in which there is use of comma and no space between both values.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a single statement to print: user_word, user_number. Note that there is no space between the comma and user_number. ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers