Ask Question

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

+2
Answers (1)
  1. 8 July, 02:19
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers