if python2.3 nested structure:

Case #: Make money deposits under 1 million, to buy a BMW; Dad funding of more than 50 million to buy a BMW 740; more than 30 million to buy a BMW 520; less than 200,000 BMW 320.
Deposits greater than 500,000 is less than 100 million to buy Toyota; greater than 200,000 is less than 50 million to buy a used car; less than 200,000 bicycles!

cunkuan = int (input ( "Please enter your bank account (ten thousand):"))
zizhu = int (the INPUT ( "you give your dad funded amount (ten thousand):"))
#elif multi-conditional, else: elif not satisfied then execute other commands
IF cunkuan> = 100:
               ( "! can buy a BMW, good fun") Print
# secondary nesting if_elif
                IF zizhu> 50:
                             Print ( "buy a BMW 740")
                elif zizhu> 30:
                              Print ( "buy a BMW 520")
                elif zizhu> 20:
                              Print ( "buy a BMW 320")
                the else:
                              Print ( "1 million to buy a BMW")
elif cunkuan> 50:
Print ( "can buy a Toyota, good fun ")!
elif cunkuan> 20:
Print ("! or buy a second-hand car now. ")
The else:
Print ( "bike or buy it!")

Guess you like

Origin www.cnblogs.com/lma0702/p/11106775.html