Re: [Tutor] FW: query

2015-06-25 Thread Whom Isac
Sorry, the interpreter uses colour which is why some code is missing. Here is the text version of my code: def odd_or_even(): X=input("Enter the number which you want to check for odd and even: ") try: number=int(X) print("The number %s is ODD."%(number)if number%2!=0 else

Re: [Tutor] FW: query

2015-06-25 Thread Whom Isac
*def *odd_or_even(): X=input("Enter the number which you want to check for odd and even: ") number=int(X) print("The number %s is ODD."%(number) *if *number%2!=0 *else *"The number %s is EVEN."%(number)) On Thu, Jun 25, 2015 at 1:53 PM, Whom Isac wrote: > Hi, abhijeet...@yahoo.in: >

Re: [Tutor] FW: query

2015-06-25 Thread Whom Isac
For abhijeet...@yahoo.in: I had posted few solution to your question before but unfortunately they were sent to Alan Gauld mail because I am not used to the tutor@python.org mail system. Here is the code that will work: ""ODD/EVEN finder:""" def odd_or_even(): X=input("Enter the number which

Re: [Tutor] FW: query

2015-06-24 Thread Alan Gauld
On 24/06/15 13:58, abhijeet...@yahoo.in wrote: Hey guys can anybody tell me what's wrong with this code: The code is below? Please in future 1) start a new thread with a new post, do not hijack somebody else's query. It messes up the archive and threaded mail/newsreaders 2) Use plain text fo

Re: [Tutor] FW: query

2015-06-24 Thread Emile van Sebille
On 6/24/2015 5:58 AM, abhijeet...@yahoo.in wrote: Hey guys can anybody tell me what's wrong with this code: The code is below? Actually the point is that when we put "34h4" type of value it's an valueerror but here no handling is been performed by the python ??? while 1: number=int(input("

Re: [Tutor] FW: query

2015-06-24 Thread abhijeet560
Hey guys can anybody tell me what's wrong with this code: The code is below?Actually the point is that when we put "34h4" type of value it's an valueerror but here no handling is been performed by the python ??? while 1:    number=int(input("Enter the number which u want to check for odd and eve

Re: [Tutor] FW: query

2015-06-23 Thread Alan Gauld
On 23/06/15 18:13, Gupta, Manaswini Kat wrote: I need to fetch the records of count(*)>3 can you please tell me the logic in python Sorry, but that's not very clear. What do you mean? It looks like a bit of SQL so, are you asking how to execute that SQL from within Python? If so on what data

Re: [Tutor] FW: query

2015-06-23 Thread Emile van Sebille
You're more likely to get an appropriate response if you review http://catb.org/~esr/faqs/smart-questions.html and then ask. Emile On 6/23/2015 10:13 AM, Gupta, Manaswini Kat wrote: From: Gupta, Manaswini Kat Sent: Tuesday, June 23, 2015 10:42 PM To: 'tutor-ow...@python.org' Subject: FW: qu

[Tutor] FW: query

2015-06-23 Thread Gupta, Manaswini Kat
From: Gupta, Manaswini Kat Sent: Tuesday, June 23, 2015 10:42 PM To: 'tutor-ow...@python.org' Subject: FW: query From: Gupta, Manaswini Kat Sent: Tuesday, June 23, 2015 10:40 PM To: 'tutor-ow...@python.org' Subject: query Hi, I need to fetch the records of count(*)>3 can you please tell me th

[Tutor] Fw: query regarding mysql database backup?? please Help

2006-01-04 Thread deepak.gupta
  - Original Message - From: deepak.gupta To: tutor@python.org Sent: Wednesday, January 04, 2006 5:27 PM Subject: query regarding mysql database backup?? please Help Hi, I did my script like this  for backing my max_everest_2006 mysql database   >>import os > > target_dir = "./b