ABOUT ME

Welcome everyone to my blog. I'm Emmanuel Peters-Macauley ;). Please take the time to read the below profile about me before exploring my life through this blog.
The world of computers is growing at an unremarkable speed everyday, computers are the most influential tools in our lives. As long as computers are around people need to write and code the programs like Microsoft Word, and code your games. Also from a young age I have always been interested in the way a business operates and grows.
The way a business grows gives me much excitement because of the way a small business can end up becoming a successful company in the future.
My hobbies include football, going out to the cinema, shopping for myself and others, my PC, and the most of all my athletics. I am also training in crystal palace to become a professional athlete as I love my athletics a lot. I also love to eat out, going out for meals with friends is unrivalled by almost any social gathering including clubs, I love sitting around a table talking and joking about with friends while eating or relaxing in the park, its something I try and do at least once a month. Friends are very important to me and I try to be the best friend I can.

PYTHON

I really don't know about you but I definitely struggled with python but with a little help from a few of my fellow students I managed to get through it ok.

Can anyone help me understand whats going on here:



def ATM():
           
    pin = '2580'
    balance = 3500
    overdraft = 250
    while True:
        pin_input = raw_input('insert your PIN number: ')
        if pin == pin_input:
            print 'select from the following options:'
            print
            break
        else:
            print 'wrong pin, try again'
            print
           
    while True:
        menu_input = raw_input('\n1. Balance \n2. Withdraw \n3. Deposit \n4. Exit \nchoose from menu: ')
        if menu_input == '1':
            print '\nAvailable withdraw: ' + str(balance + overdraft)
            print '\nYour overdraft limit is: ' + str(overdraft)
           
        elif menu_input == '2':
            Withdraw_input = raw_input('insert the amount you would like to take out: ')
            if (int(Withdraw_input) > balance + overdraft):
                print 'you are beyond your balance limit'
               
            else:
                print 'withdrawn: ' + str(Withdraw_input)
                if (int(Withdraw_input) > balance):
                    overdraft == overdraft_2
                    overdraft_2 = overdraft - (int(Withdraw_input) - balance)
                balance = (balance + overdraft)- int(Withdraw_input)
                          
  
        elif menu_input == '3':
            Deposit_input = raw_input('enter the  deposit: ')
            print 'The deposited is: ' + str(Deposit_input)
            balance = balance + int(Deposit_input)
           
        elif menu_input == '4':
            print '\n Thank You for using our service'
            break

ATM ()

















Youtube (2012). Python For Beginners: http://www.youtube.com/watch?v=29mq1Bn52GY
:)

Here is a video for those who are beginners like me





5 comments:

  1. i found python difficult but got the hang of it in the end

    ReplyDelete
  2. the page layout is nice but it looks all the same to me.

    ReplyDelete
  3. I think you will need to write something in here for python??? :S

    ReplyDelete