Sorting by alphabet
Write a program that receives a number of names from the input and then arranges them based on alphabetic letters and prints in the output
Write a program that receives a number of names from the input and then arranges them based on alphabetic letters and prints in the output
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
names = [] # List for names while True: # As long as name_user = input('please enter your names: ') # Get input from the user if name_user == '': break else: names.append(name_user) names.sort() print(names)
names_list = [] for i in range (10): names_list.append(input('Enter name : ')) names_list.sort() print(names_list)
names = [] while True: user_input = input("Please enter a name: (enter to exit)") if user_input == "": break else: names.append(user_input) names.sort() print(f"Sorted name => {names}")
names=[] while True: name = input("inter your names: ") if name.lower() == 'end': break names.append(name) print(sorted(names))
# Get names and sorting by alphabet x = input('please enter name with - seprator:') x = x.lower() # Sorting to size and small letters are sensitive x= x.split('-') x.sort() # Make sure you do not push the sorting command into the variable for item in x: print(item)
asami = [] while 1: names = input("please enter a name: ") if names == 0: break elif names.isalpha(): asami.append(names) else: print(sorted(asami))
list_names=[] while True: x=str(input("x: ")) list_names.append(x) if x=="": list_names.remove("") break abcd = sorted(list_names) print(abcd)
Submitting answers is currently unavailable.
Design a form that receives the following information using the best elements from the user and to the register page/ by posting the Post Family Subscribe of Mobile Birthday Country
Write a library program that has the following features: 1- The user can register a new book 2- The user can delete recorded books 3- The user can change the specifications of the books including their name and subject ...
Write a class called Vehicle that has Model and Color features and has a method called get_info that returns all its features as a strang then write a class called Car from Vehicle ...
Write a program that receives an infinite number from the user and when the user entered the number 0; Print all numbers entered from large to small in the output
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.