my projects

 2. KBC Program

n = '''---    --  -------      ----
       ---  --    ---    --   --  ---
       -----      -------    --
       ---  --    ---    --   --  ---
       ---  ----  -------      ----      '''
print(n, '\n\n')
ques = ['Q1.WHAT IS THE CURRENCY OF ENGLAND a.dollar b.pound c.ruppee d.euro', 'Q2.WHAT IS MEANING OF TAKING A NAP a.sleep b.bedtime c.short sleep d.homework', 'Q3.WHICH COUNTRY IS BIGGER BY LAND AREA a.PAKISTAN b.kuwait c.vietnam d.papua new guinea',
        'Q4.DIFFERENCE BETWEEN h2o and water a.same b.different c.almost same d.none', 'Q5. WHICH COUNTRY IS RICHER BY FINANCIAL AND GDP STATUS? a.Usa b.SUDAN c.Egypt d.Norway', 'Q6. WHICH IS BIGGER a.atlantic ocean b.Asia c.arctic ocean d.pacific ocean']
p = 0
c=0
for i in ques:
    print(ques[0])
    a = input("enter answer : ")
    if a == 'b':
        print("correct answer")
        print('price 200000')
        p = p+200000
        c=c+1
        break

    else:
        print('wrong')
        p = p-100000
        break
for i in ques:
    print(ques[1])
    a = input('enter answer: ')
    if a == 'c':
        print('correct answer')
        print('price : 1 Million')
        p = p+1000000
        c=c+1
        break
    else:
        print('wrong')
        p = p-20000
        break
for i in ques:
    print(ques[2], '\n it is a bit harder------*/--/-*')
    a = input('enter answer: ')
    if a == 'd':
        print('correct answer')
        print('price : 4 million')
        p = p+4000000
        c=c+1
        break
    else:
        print('wrong')
        break
for i in ques:
    print(ques[3])
    a = input('enter answer: ')
    if a == 'a':
        print('correct answer')
        print('price: 2.5 million')
        p = p+2500000
        c=c+1
        break
    else:
        print('wrong')
        p = p-1000
        break
for i in ques:
    print(ques[4])
    a = input('enter answer : ')
    if a == 'd':
        print('correct answer ')
        print('price : 1.15 million')
        p = p+11500000
        c=c+1
        break
    else:
        print('wrong')
        p = p-500
        break
for i in ques:
    print(ques[5])
    a = input('enter answer: ')
    if a == 'd':
        print('correct answer\n price : 2 million\n congratulations you have finished the game ')
        p = p+2000000
        c=c+1
        break
    else:
        print('wrong')
        p = p-200
        break
if p >= 10000000:
    print('hurraHHHH!!!! YOU WON THE GAME KBC')
    print('your earning is', 'RS: ', p,'\nyou\'ve corrected ',c,'out of 6 questions')

else:
    print('wrong\nyou failed but don\'t worry BECAUSE::: \nFAIL means first attempt in learning\n better luck next time')
    print('YOUR EARNING IS,', "RS: ", p,'\nyou\'ve corrected ',c,'out of 6 questions')

Comments

Popular posts from this blog

Advance Calculator Made For Mathematicans and Coders | Made with Python

My Projects

Functions Module