Re: [Tutor] Help please

2013-10-17 Thread Kengesbayev, Askar
Ruben, #1 you can try something like this try: with open('my_file.txt') as file: pass except IOError as e: print "Unable to open file" #Does not exist or you do not have read permission #2. I would try to use regular expression push words to array and then you

Re: [Tutor] Fwd: we need assistance in my school

2013-10-15 Thread Kengesbayev, Askar
Hi Okechukwu, I would recommend to use Khan Academy. It is free resource of use. He covers python basic plus they built sophisticated system that track performance of each student. That would help you a lot and see weak sides of your students. https://www.khanacademy.org/cs For more advance

Re: [Tutor] Why do I not get the same results for these two functions when I pass 7 as an argument?

2013-05-03 Thread Kengesbayev, Askar
You need to change the condition statement: if days >= 3 < 7: to thisif days >= 3 and days < 7: When it goes through the function it sees this statement days >= 3 as true and execute - payment -20. Askar From: Nonso Ibenegbu [mailto:jollyn...@gmail.com] Sent: Friday, May 03, 2013 2:10