CoderzDT

The Coders Development Team
 
HomeHome  ­PortalPortal  ­CalendarCalendar  ­FAQFAQ  ­SearchSearch  ­MemberlistMemberlist  ­UsergroupsUsergroups  ­RegisterRegister  ­Log inLog in  
Share | 
 

 My First Program

View previous topic View next topic Go down 
AuthorMessage
ǤɌəƉ
CDT Coder (In-Training)
CDT Coder (In-Training)


Posts: 16
Join date: 2009-05-11
Age: 15

PostSubject: My First Program   Tue May 19, 2009 9:01 am

My First Program.exe

http://www.4shared.com/file/106374175/2571b0ff/My_first_program.html

_________________

"To Hack Is To Live"


Last edited by ǤɌəƉ on Tue May 19, 2009 12:39 pm; edited 1 time in total
Back to top Go down
View user profile
xerion
CDT Coder
CDT Coder


Posts: 32
Join date: 2009-05-13
Age: 15
Location: Brizzie

PostSubject: Re: My First Program   Tue May 19, 2009 9:15 am

Yea its strange but it works
just a piece of advice, at the end of any if/elif statements make sure you put a else to catch all the things that are not in the list

For Example:

Code:

loop = 1
while loop == 1:
    print 'type what group you belong to (TC, Jock, Programmers, Nerds or None of the above)'

    group = 'TC'and'Jock'and'None of the above'and'Programmers'and'Nerd'

    group = raw_input("Enter group type: ")

    if group == 'TC':
        status = 'Fuckup'
        loop = 0
    elif group == 'Jock':
        status = 'Dickhead'
        loop = 0
    elif group == 'None of the above':
        status = 'Noob'
        loop = 0
    elif group == 'Programmers':
        status = 'Maddo'
        loop = 0
    elif group == 'Nerd':
        status = 'Get a life'
        loop = 0
    else:
        status = 'Not an option.'

    print status
raw_input("Press ENTER to quit.")

_________________
A typical class: show up, get rid of your homework, get new homework, leave.

"Achievements in life are like footprints on a beach. If they are not stepped in high enough they can be washed away by a single wave."
Dave Allie


Back to top Go down
View user profile
ǤɌəƉ
CDT Coder (In-Training)
CDT Coder (In-Training)


Posts: 16
Join date: 2009-05-11
Age: 15

PostSubject: Re: My First Program   Tue May 19, 2009 10:08 am

thanks for the advice

_________________

"To Hack Is To Live"
Back to top Go down
View user profile
Frost
Administrator
Administrator


Posts: 56
Join date: 2009-05-11
Age: 15
Location: Australia

PostSubject: Re: My First Program   Tue May 19, 2009 10:15 am

seems good, i prefer a longer but mroe failsafe strategy, so far so good.

For your next program incorporate something a bit different and try and make it keyword/password activated/protected, should be sweet.

Well done. Keep it up.

_________________
Back to top Go down
View user profile http://retrace.findtalk.net
ǤɌəƉ
CDT Coder (In-Training)
CDT Coder (In-Training)


Posts: 16
Join date: 2009-05-11
Age: 15

PostSubject: Re: My First Program   Tue May 19, 2009 10:16 am

well it is my first one Smile

_________________

"To Hack Is To Live"
Back to top Go down
View user profile
xerion
CDT Coder
CDT Coder


Posts: 32
Join date: 2009-05-13
Age: 15
Location: Brizzie

PostSubject: Re: My First Program   Tue May 19, 2009 10:27 am

rofl dom ask GRED to do your stuff, password protected things

Dave Smile

_________________
A typical class: show up, get rid of your homework, get new homework, leave.

"Achievements in life are like footprints on a beach. If they are not stepped in high enough they can be washed away by a single wave."
Dave Allie


Back to top Go down
View user profile
Frost
Administrator
Administrator


Posts: 56
Join date: 2009-05-11
Age: 15
Location: Australia

PostSubject: Re: My First Program   Tue May 19, 2009 10:28 am

no just seeing if he can work it out for himself thats all Very Happy

_________________
Back to top Go down
View user profile http://retrace.findtalk.net
ǤɌəƉ
CDT Coder (In-Training)
CDT Coder (In-Training)


Posts: 16
Join date: 2009-05-11
Age: 15

PostSubject: Re: My First Program   Wed May 20, 2009 8:14 am

I updated it

http://www.4shared.com/file/106564715/9c9fa166/Group_Program.html

_________________

"To Hack Is To Live"
Back to top Go down
View user profile
ǤɌəƉ
CDT Coder (In-Training)
CDT Coder (In-Training)


Posts: 16
Join date: 2009-05-11
Age: 15

PostSubject: Re: My First Program   Wed May 20, 2009 10:16 am

does anyone have any ideas of what else i could do with this
Code:
loop = 1
while loop == 1:
    print 'type what group you belong to (TC, Jock, Programmers, Nerds or None of the above)'

    group = 'TC'and'Jock'and'None of the above'and'Programmers'and'Nerd'

    group = raw_input("Enter group type: ")

    if group == 'TC':
        status = 'Fuckup'
        loop = 0
    elif group == 'Jock':
        status = 'Dickhead'
        loop = 0
    elif group == 'None of the above':
        status = 'Noob'
        loop = 0
    elif group == 'Programmers':
        status = 'Maddo'
        loop = 0
    elif group == 'Nerds':
        status = 'Get a life'
        loop = 0
    else:
        status = 'Not an option.'

    print status
raw_input('Press ENTER to exit.')


_________________

"To Hack Is To Live"
Back to top Go down
View user profile
Frost
Administrator
Administrator


Posts: 56
Join date: 2009-05-11
Age: 15
Location: Australia

PostSubject: Re: My First Program   Thu May 21, 2009 6:54 am

could try a break loop?

lol

_________________
Back to top Go down
View user profile http://retrace.findtalk.net
 

My First Program

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
CoderzDT :: Projects :: Programs Under Development-