Sayers
July 31st, 2007, 11:31 PM
Please help me work on my code.
print "Welcome to Distro Chooser 0.01"
print " "
##Here we set up the Distrubution Choices. Since we use numbers + / - to choose which is best the distros must be variables.
#ubuntu
ubuntu = 0
#gentoo
gentoo = 0
#debian
debian = 0
## Lets start the questions
##question 1
print "What do you use your computer for?"
print "Desktop [Non-Programming] (1)"
print "Desktop Programming (2)"
print "Server (3)"
print " "
qone = raw_input("Pick a number:")
if qone == 1: # Non-Desktop
ubuntu += 5 #Makes a wonderfuly easy desktop
gentoo += 1 #Gentoo is good but very hard to setup.
debian += 3 #Easier to setup then Gentoo
if qone == 2:
ubuntu += 2 #Ubuntu is good for programming.
gentoo += 4 #Gentoo lets you compile all the packages which is great for Developers
debian += 3 #Debian is good for programming.
if qone == 3:
ubuntu += 1 # Ubuntu makes great servers for newbs, but most people who assemble servers know what they're doing.
gentoo += 3 #Gentoo makes a decent server. Fast.
debian += 5 #Debian is best known for it's server abbility
## Question 2
print " "
print "What is your knowledge of linux?"
print "Very Low / None (1)"
print "Medium (2)"
print "I know A LOT about linux (3)"
print " "
qtwo = input("Pick a number:")
if qtwo == 1:
ubuntu += 5 #ubuntu is super easy!
gentoo -= 3 #I subtract 3, Gentoo is impossible for a newbie.
# I ignore debian, it isn't hard but it deffentily isn't easy.
if qtwo == 2:
ubuntu += 3 # It's good for medium skill users but some will find it lacking the abbilityu to customize.
gentoo += 2 # It is hard to use
debian += 3 # easy to use easy to customize
if qtwo == 3:
ubuntu += 1
gentoo += 7 # any real hard-core linux user will love Gentoo
debian += 4 # Very good.
print "Welcome to Distro Chooser 0.01"
print " "
##Here we set up the Distrubution Choices. Since we use numbers + / - to choose which is best the distros must be variables.
#ubuntu
ubuntu = 0
#gentoo
gentoo = 0
#debian
debian = 0
## Lets start the questions
##question 1
print "What do you use your computer for?"
print "Desktop [Non-Programming] (1)"
print "Desktop Programming (2)"
print "Server (3)"
print " "
qone = raw_input("Pick a number:")
if qone == 1: # Non-Desktop
ubuntu += 5 #Makes a wonderfuly easy desktop
gentoo += 1 #Gentoo is good but very hard to setup.
debian += 3 #Easier to setup then Gentoo
if qone == 2:
ubuntu += 2 #Ubuntu is good for programming.
gentoo += 4 #Gentoo lets you compile all the packages which is great for Developers
debian += 3 #Debian is good for programming.
if qone == 3:
ubuntu += 1 # Ubuntu makes great servers for newbs, but most people who assemble servers know what they're doing.
gentoo += 3 #Gentoo makes a decent server. Fast.
debian += 5 #Debian is best known for it's server abbility
## Question 2
print " "
print "What is your knowledge of linux?"
print "Very Low / None (1)"
print "Medium (2)"
print "I know A LOT about linux (3)"
print " "
qtwo = input("Pick a number:")
if qtwo == 1:
ubuntu += 5 #ubuntu is super easy!
gentoo -= 3 #I subtract 3, Gentoo is impossible for a newbie.
# I ignore debian, it isn't hard but it deffentily isn't easy.
if qtwo == 2:
ubuntu += 3 # It's good for medium skill users but some will find it lacking the abbilityu to customize.
gentoo += 2 # It is hard to use
debian += 3 # easy to use easy to customize
if qtwo == 3:
ubuntu += 1
gentoo += 7 # any real hard-core linux user will love Gentoo
debian += 4 # Very good.