We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc0abb9 commit fb9e588Copy full SHA for fb9e588
excercise_12.py
@@ -0,0 +1,8 @@
1
+import random
2
+names=input("enter everybody's name separated by comma:")
3
+names_list=names.split(',')
4
+names_list = [name.strip() for name in names_list]
5
+
6
+print(names_list)
7
+will_pay_bill=random.choice(names_list)
8
+print(f"{will_pay_bill} will pay the bill.")
0 commit comments