Mar-26-2022, 05:45 PM
names = ['Bob', 'Carol', 'Ted', 'Alice'] print(f"Hello {' & '.join(names)}!") names=["Alice"] print(f"Hello {' & '.join(names)}!"))
Output:Hello Bob & Carol & Ted & Alice!
Hello Alice!
name.split() + (And) + print question
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Question on "define function"; difference between return and print | extricate | 10 | 5,025 |
Jun-09-2020, 08:56 PM Last Post: jefsummers |
|
Self Paced Web course - split ip and print each piece in binary and hex | sumncguy | 2 | 2,477 |
Dec-04-2019, 06:03 PM Last Post: jefsummers |