About 1,040,000 results
Open links in new tab
  1. python code for a list of friends greetings each other

    Oct 17, 2021 · I have a python program with following logic & I can't get the nested loops right :( first line: number of friends? second line: enter each person name in same line separated by …

  2. FAQ: Code Challenge: Loops - Greetings - Page 2 - Python FAQ ...

    Jun 1, 2020 · def hello(names): greeting = for name in names: greeting.append('Hello, ’ + name) return greeting

  3. [Python] How would I write this program? : r/AskProgramming - Reddit

    Nov 22, 2015 · It's asking me to: Write a program that asks for the names of your three friends, then prints out a greeting for each of them. Your program should work like this: name = …

  4. Python Function: Greet a Person by Name - CodePal

    In this tutorial, we will learn how to write a Python function that greets a person by their name. The function, called greet, takes a name parameter and returns a greeting message for that …

  5. write the program to greet all person names stored in list L1 and …

    OneCompiler's python online editor supports stdin and users can give inputs to programs using the STDIN textbox under the I/O tab. Following is a sample python program which takes name …

  6. 1.4. Exercise: Greetings — The Workbook for Programming with Python

    Exercise: Greetings ¶ Write a program that asks the user for their name and greets them accordingly. You can ask for the name and greet the user anyway you like. Note that the …

  7. Greet Someone (Exercise) (Video) – Real Python

    Write a function called greet() that takes one string parameter called name and displays the text "Hello, <name>!", where the name is replaced by the value of the name parameter. 00:33 For …

  8. JanSkoupil86/Python-code-for-greeting-message-using-defintie-l…

    GitHub - JanSkoupil86/Python-code-for-greeting-message-using-defintie-loop: The given Python code iterates through the list friends using a for loop and prints a greeting message for each …

  9. Name and Greet Project - DEV Community

    Apr 21, 2023 · Name and greet" is a simple Python project that allows the user to input their name and select a type of greeting. Based on their choice, the program outputs a personalized …

  10. Making a greeting program in python - Stack Overflow

    For python 2, use raw_input to get input. For python 3, use input to get input. name = raw_input("Hi, whats your name?") #python 2. return greeting + name. # Python program that …

  11. Some results have been removed
Refresh