12-20-2010, 03:38 PM
I started teaching myself python a mouth ago, one of the first things I did was make a profit calculator. I coded some other things like a Mock Up 1980's computer and things like that. Does anyone know where I can get a list of tasks to try? ?
Oh i nearly forgot, here the code i made :-
x = raw_input ("Enter name: ")
print "Hey there " + x + " welcome to my profit calculator"
a = input ("Enter Sale Price: ")
b = input ("Enter Expenditure: ")
p = a - b
print p
print " Thank you for using my calculator " + x
I also made this one too :-
x = raw_input ("Enter Full Name ")
y = raw_input ("Enter Age ")
z = raw_input ("Enter Date of Birth ")
a = raw_input ("Enter Secure Number ")
n = "Press c, For Command Lists"
print "Verifing in process"
print x
print y
print z
print a
print "Corfirm Listed Deatails :- as yes or no"
yes = "ACCESS GRANTED TO " + x
no = "Restart System"
print n
c = " Select from the following :- m - upcomming missions / w - weapons / p - planes "
m = " ACCESS DENIED"
w = "ACCESS DENIED"
p = "Airbus A380 Shecdulded to arrive 4/11/10"
These were just from trial and error and some ideas a link to a list of commands would also be great
Oh i nearly forgot, here the code i made :-
x = raw_input ("Enter name: ")
print "Hey there " + x + " welcome to my profit calculator"
a = input ("Enter Sale Price: ")
b = input ("Enter Expenditure: ")
p = a - b
print p
print " Thank you for using my calculator " + x
I also made this one too :-
x = raw_input ("Enter Full Name ")
y = raw_input ("Enter Age ")
z = raw_input ("Enter Date of Birth ")
a = raw_input ("Enter Secure Number ")
n = "Press c, For Command Lists"
print "Verifing in process"
print x
print y
print z
print a
print "Corfirm Listed Deatails :- as yes or no"
yes = "ACCESS GRANTED TO " + x
no = "Restart System"
print n
c = " Select from the following :- m - upcomming missions / w - weapons / p - planes "
m = " ACCESS DENIED"
w = "ACCESS DENIED"
p = "Airbus A380 Shecdulded to arrive 4/11/10"
These were just from trial and error and some ideas a link to a list of commands would also be great