@iiandyii12/

code at home 10

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import sys
friends = []
hobbies = []
print ("hey welcome to my friends list")
print ("so i need you to add a friend and a hobby that they do e.g gam-ing")
name1 = input ("please type in one of your friends name")
hobbie1 = input ("... and a hobbie")
friends.append (name1)
print (friends)
hobbies.append (hobbie1)
print (hobbies)

answer = input ("would you like to use my friend list (y, n)")
if answer == y
  print ("hey welcome to my friends list")
print ("so i need you to add a friend and a hobby that they do e.g gam-ing")
name1 = input ("please type in one of your friends name")
hobbie1 = input ("... and a hobbie")
friends.append (name1)
print (friends)
hobbies.append (hobbie1)
print (hobbies)
  
else sys.exit