This is a basic Mash program assignment I have to do but I have a few problems, and I don't know how to edit it.
It is suppose to look like this: http://i43.tinypic.com/inv0gj.jpg
but mine look slightly different: (copy and paste the code to ur python to check if you need too.)
Problem:
- How do I seperate the buttom paragraph so it's not all grouped together?
- How do I put something in a whole sentence (the "#conclusion" part at above)
- How do I make the outcomes come out randomly..
I found out a problem that when it says
"You live in a (HOUSE)"
"Married to (SPOUSE)" .. etc
^ Part, I realied it isn't coming out with random and different answers. I've re-run the program and it gives out the same outcome everytime.
SUMMARY:
Basically I want this program to look like the one above(linked), and I don't know how to edit mine to become like it.. Any tips/help please?
house =["Mansion", "Apartment", "Shack", "House"]
spouse =["EMPTY", "EMPTY", "EMPTY", "EMPTY"]
car =["EMPTY", "EMPTY", "EMPTY", "EMPTY"]
kids =["0", "1", "2", "5"]
print "Enter the name of three people you could marry: "
name1 = raw_input("Name1:")
spouse[0]= name1
name2 = raw_input("Name2:")
spouse[1]= name2
name5 = raw_input("Name3:")
spouse[2]= name5
print "Enter the name of one person you wouldn't want to marry:"
name4 =raw_input("Name4: ")
spouse[3]= name4
print "Enter the name of 3 cars you want: "
car1 =raw_input("car1:")
car[0]= car1
car2 = raw_input("car2:")
car[1] = car2
car3=raw_input("car3:")
car[2]=car3
print "Enter the name of one car you don't want: "
car4 =raw_input("car4:")
car[3]=car4
#conclusion
print "You will live in a: "
for i in range(1):
print house[i]
print "Married to: "
for i in range(1):
print spouse[i]
print "While driving your: "
for i in range(1):
print car[i]
print "With your "
for i in range(1):
print kids[i]
print "kids in it"