<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello folks,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I would be very pleased if someone is able to help me.<o:p></o:p></p><p class=MsoNormal>I wrote a small programm, to calculate the grand total for a car.<o:p></o:p></p><p class=MsoNormal>A basic price can be entered. Given that basic price, a tax peercentage is calculated and added tot he grand total.<o:p></o:p></p><p class=MsoNormal><br>But unfortunately I am stuck with giving the user the choice to select an additional option!<br>The extra items have got set values, but at the moment they all get summarized, but i want to choose.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>AFAIK I already tried:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Print  raw_input ((“Would you like to have leather?“) <span style='font-family:Wingdings'>à</span> then yes or no<o:p></o:p></p><p class=MsoNormal>If raw_input == yes<o:p></o:p></p><p class=MsoNormal>      Print Leather (Leather) <span style='font-family:Wingdings'>ß</span> displaying the variables value<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Plus adding the item at the end to concatenate it with the basic value.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I hope it is clear where my problem is.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Regards,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Niclas<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>My code I already wrote:<o:p></o:p></p><p class=MsoNormal>-----------------------------<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>#Car price calculator<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># Set variables for additional items<o:p></o:p></p><p class=MsoNormal>Leather = (500)<o:p></o:p></p><p class=MsoNormal>int (Leather)<o:p></o:p></p><p class=MsoNormal>Clima = (1500)<o:p></o:p></p><p class=MsoNormal>int (Clima)<o:p></o:p></p><p class=MsoNormal>Hifi = (250)<o:p></o:p></p><p class=MsoNormal>int (Hifi)<o:p></o:p></p><p class=MsoNormal>Electrics = (750)<o:p></o:p></p><p class=MsoNormal>int (Electrics)<o:p></o:p></p><p class=MsoNormal>Comfort = (2500)<o:p></o:p></p><p class=MsoNormal>int (Comfort)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>print "\t\t\tWelcome to the car price calculator!"<o:p></o:p></p><p class=MsoNormal>print "\t\t\tCredits belong to Niclas Rautenhaus"<o:p></o:p></p><p class=MsoNormal>print "\n\nPlease enter the basic price: "<o:p></o:p></p><p class=MsoNormal>basic = int (raw_input())<o:p></o:p></p><p class=MsoNormal># Tax is a percentage of the basic car price<o:p></o:p></p><p class=MsoNormal>Tax = basic * 5 / 100<o:p></o:p></p><p class=MsoNormal>int (Tax)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>print "\nAdded items:"<o:p></o:p></p><p class=MsoNormal># Here the user should have the possibility to pick either yes or no<o:p></o:p></p><p class=MsoNormal>print "\n\nLeather",(Leather)<o:p></o:p></p><p class=MsoNormal>print "Clima",(Clima)<o:p></o:p></p><p class=MsoNormal>print "Hifi", (Hifi)<o:p></o:p></p><p class=MsoNormal>print "Electrics", (Electrics)<o:p></o:p></p><p class=MsoNormal>print "Comfort", (Comfort)<o:p></o:p></p><p class=MsoNormal>print "Tax", (Tax)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># Last step: the picked items shall be summarized<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>print "\n\nTotal grand:", basic + Leather + Clima + Hifi \<o:p></o:p></p><p class=MsoNormal>      + Electrics + Comfort + Tax<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>raw_input ("\nPress the enter key to exit!")<o:p></o:p></p></div></body></html>