print("Enter some words (. to stop)")
s = input()
lst = []
while(s!="."):
lst.append(s)
s = input()
for x in lst:
print(x,end=" ")
print(".")

Python Programming Q.3) Write a program that repeatedly asks the user to enter words until they...
Write a python program that repeatedly asks the user to input a pair of integers. The program should record the largest number of each pair into a list. The program should keep asking the user to input pairs of numbers until the user enters -1 for the first number. At this point the program should print the list on a single line, with each value separated by a space and then stop. Example of expected behaviour: Please enter first number:...
(Python Programming)Write a Python program that prompts the user to enter a list of words and stores in a list only those words whose first letter occurs again within the word (for example, 'Baboon'). The program should display the resulting list.
Python Write a program which asks the user keep inputting values on a line followed by enter until they enter a blank line, at which point the program should print the number of lines entered (excluding the blank).
Python 3: Write a program in python that asks the user to enter a number that contains 4 digits, i.e. in the range [1000-9999]. Your program MUST take it as a number integer. Print each digit on a separate line.
Write a program that asks the user to enter a string and then asks the user to enter a character. The program should count and display the number of times that the specified character appears in the string. python programming
USING PYTHON PROGRAMING LANGUAGE Write a program that first asks the user to enter a “special” letter. The program should then ask the user to enter a single line sentence containing all lowercase letters and no punctuation, except for a period at the end. The program will then output the number of times that this letter appears in the sentence. Example: Enter a special letter: t Enter a sentence: here is my little sentence. Your letter appears 3 times. (t...
Python Programming 4th Edition: Write a program that asks the user for the number of feet. The program converts those feet to inches by using the formula ’12 * feet’. Hint: Define main () program Get the number of feet from the user Define variables Call a function feet_to_inches(feet) The function receives the number of feet and returns the number of inches in that many feet. The output should look like as follows: Enter the number of feet: If the...
Using loops, write a C# program that asks the user to enter repeatedly an integer number, it stops when the user enters -1, then the program should display how many numbers were entered, their the sum and their average
Write a program that asks users to enter a name or press 'q' to stop. Each name should be added to a list, and once the user quits (by pressing 'q'), the list of names is written to a text file called 'names.txt'. intro to programming(python)
Write a Python 3 program which asks the user to enter a sentence which contains the same word several times, e.g. Monday is a nice day and on Monday I will talk to my students about Monday. The program then asks the user to enter a word: e.g. Monday, then they are asked to enter another word, e.g. Friday. Every occurrence of the first word entered should be replaced by the second word entered in the original sentence entered. In...