Heres the code:
# Ask user for employee information
fullName = raw_input("Enter your full name: ")
hoursWorked = int (raw_input("Enter amount of hours worked: "))
payRate = float (raw_input("Enter your pay rate per hour: $"))
# Calculate payrate
salary = payRate * hoursWorked
# Display total salary
print "Employee name: "- fullName
print "Empoyee salary: $"- salary
#Write employee information to file
outFile = open ( c:\outputFile.txt - w ) # Open empFile to write
^ ^ Error int his line
|| ||
outFile.write ( fullName ) # Write empoyess name to outFile.txt
outFile.close() # Close employees file
I just started yesterday learning a bit about python and I dont know much. If you could please tell me if what I m doing is correct and if you see any other problems else please let me know.
I found the error- you have to include two \ instead of one because I think that it interprets one as another function and not a file designation operator.
Wait nope I still get the error even with the double \
I love Lord of the Rings- Harry Potter- Pride and Prejudice- Pirates of the Caribbean- Phantom of the Opera- Across the Universe- The Queen- Dodgeball- Monty Python and the Holy Grail- 1776- Grease- Ferris Bueller s Day Off- Labyrinth- Princess Bride- etc.
they are both capable of feeding on rats but i have been feeding them roughly 2 small mice a week.
can i use a lamp at day and heating pad at nigth- or opposite?
i have 40 gallon tank- do i need only ONE heating pad?
on what side shaould i put i heating pad on?
PLASE answer question- HELP!
10 POINTS GUARANTEED!!! thanks :)
i found this snake in my tree one night and i dont know what type of python it is. i live on the gold coast and we think it lives under our house...
http://s286.photobucket.com/albums/ll107/lil-miss-lazy/?action=view&current=snake2.jpg
http://s286.photobucket.com/albums/ll107/lil-miss-lazy/?action=view&current=snake.jpg
No comments:
Post a Comment