[Tutor] noobie question,,,error related
I get this error when I try and load the datetime module, Traceback (most recent call last): File "C:/Python27/TIMED_PROGRAM.py", line 2, in datetime.ctime() AttributeError: 'module' object has no attribute 'ctime' why is this? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] pywin32 help
hello I am running python 2.7 , I am trying to install pywin32 version 2.7 when I run the setup.py file a black console windows pops up displays some text and dissappears before I can read any of the text . I dont know what says so I cant give details here is the link to pywin32 : http://sourceforge.net/projects/pywin32/... I need pywin32 for the pythoncom module which I will be using pumpmessages .why dont they make the install easier? like a more stable EXE or something instead of all these file directories they include.. they made to make this download for an average joe haha... please help this average joe out ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] ideas for a simple program
can I have some good ideas for simple programs, I have come to realize the hardest part of programming is not having a project to do and having to think of one haha ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] If I use this code will it delete my program fileS?
I have a question I know the shutil module deletes directories, If I use this code will it delete all of my program files? import shutil shutil.rmtree('C:\Program Files (x86)') ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] Calaculating a monthly total of earning
Heres my code: def income_report(yearly_income,hourly_income): """ this will count the average of your total monthly income""" sum_of_monthly=int(yearly_income/12)# his yearly income dividing by 12. minus_weekends=hourly_income*64 #the 64 is the two days off for the weekend(assuming working an 8 hour shift) #and there are 4 weekends in a month so 1 weekend=16 hours so 4 weekends would be 64 hours now working #now I must subtract that from the monthly income(sum_of_monthly) total_income=int(minus_weekends-sum_of_monthly) #this is the money thats subtracted to the monthly total not working from the weekends return sum_of_monthly,total_income I call income_report with some like income_report(20,12) and I get numbers printed like (1, -15898) the second argument is to much and its negative and when I multiply 1 by 12 to see if sum_of_monthly did its job correctly I get a number thats off , I got 12 not 20.Python is so tempormential what is wrong with my code? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] Anyone interested in creating a python help hotline?
I thought creating a Python help hotline would help programmers exponential! I think they should make a help hotline for every programming language. and since I havent discovered something similar It would probably be lucretive! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] Anyone interested in making a Python Help hotline?
I thought creating a Python help hotline would help programmers exponential! I think they should make a help hotline for every programming language. and since I havent discovered something similar It would probably be lucretive! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] TKinter help
I am just starting to learn Tkinter and I was wondering if I should just run tkinter in pythons new findow and run the program. Iv done this before and my python crashed.. plus I want to create a text widget that has a quit box. will pythons IDLE be able to handle this and display the widget ? or are there other IDE's that I need to use? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] how come this doesnt work
I generate a random number(supposedly a password, in my case its just a long floating point lol),I want the user to reinput that number and I want to print a string if the number entered is correct. so if m==num(num is the number generated and m is the variable which stores the input ) then I want to print 'you entered correctly, proceed'. here is my code.. import random for x in range(0,1): num = random.random() print (num) m=input('input pass:') if m==num: print('you entered correctly, proceed') It's very noobish dont give me complex replys, and dont be to rude or laugh at me, as I am a beginner In the programming domain. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] how to print random number multiply
I have mostly studied python and now I'm ready to start writing code. I want to print random numbers a certain ammount of times I am using the code import random print (random.random()) I tried bind the print statement to a variable and when I call x for example I want it to print new numbers when I store the print statement in a variable x everytime I call x it's the same number and does change I wanted it to change when I call it could someone show me the code to do that thanks! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor