Re: [Tutor] Python

2014-12-03 Thread Alan Gauld
On 03/12/14 21:02, jack jasper wrote: Why do I get SyntaxErrors when I type in an article like a or a colon : Enter an integer an gets listed as a SyntaxError x == 0: The colon gets flagged This is part of an if else program with an x = raw_input('Enter an integer: ') sort of statement above i

Re: [Tutor] How to split string into separate lines

2014-12-03 Thread Alan Gauld
On 03/12/14 18:18, shweta kaushik wrote: I need help for doing this task. I know it will be simple but I am not able to do it. Your description of the task is not very precise so I'll make some guesses below. output_message_packet= fe01b8412756fe02fe01b9410 I want to

Re: [Tutor] Python

2014-12-03 Thread Joel Goldstick
On Wed, Dec 3, 2014 at 4:02 PM, jack jasper wrote: > Why do I get SyntaxErrors when I type in an article like a or a colon : > Enter an integer an gets listed as a SyntaxError > > x == 0: The colon gets flagged This is part of an if else program with an colon only goes on end of def, if, elif, e

Re: [Tutor] How to split string into separate lines

2014-12-03 Thread Joel Goldstick
On Wed, Dec 3, 2014 at 1:18 PM, shweta kaushik wrote: > Hi, > > I need help for doing this task. I know it will be simple but I am not able > to do it. > > output_message_packet= > fe01b8412756fe02fe01b9416239fe02fe01ba41ad88fe02fe01bb410

[Tutor] Python

2014-12-03 Thread jack jasper
Why do I get SyntaxErrors when I type in an article like a or a colon : Enter an integer an gets listed as a SyntaxError x == 0: The colon gets flagged This is part of an if else program with an x = raw_input('Enter an integer: ') sort of statement above it. I've had trouble with -> with the >

[Tutor] How to split string into separate lines

2014-12-03 Thread shweta kaushik
Hi, I need help for doing this task. I know it will be simple but I am not able to do it. output_message_packet= fe01b8412756fe02fe01b9416239fe02fe01ba41ad88fe02fe01bb41e8e7fe02fe01bc4112fbfe02fe01bd41

Re: [Tutor] Parse files and create sqlite3 db (Alan Gauld)

2014-12-03 Thread Dave Angel
On 12/03/2014 08:07 AM, jarod...@libero.it wrote: thanks so much,here you have the error: --- NameError Traceback (most recent call last) in () 43

Re: [Tutor] Parse files and create sqlite3 db (Alan Gauld)

2014-12-03 Thread jarod...@libero.it
thanks so much,here you have the error: --- NameError Traceback (most recent call last) in () 43 status = line[-4:] # and overall status pas

Re: [Tutor] A small project

2014-12-03 Thread Peter Otten
Santosh Kumar wrote: > All, > > Any suggestion to my question ? > > On Thu, Nov 27, 2014 at 12:43 PM, Santosh Kumar > wrote: > >> Hi All, >> >> I am planning to start a small project , so i need some suggestions on >> how to go about it. >> >> 1) It basically takes some inputs like (name,age,c

Re: [Tutor] Does the user need to install Python, when we deploy our c++ products using python?

2014-12-03 Thread Steven D'Aprano
On Tue, Dec 02, 2014 at 01:28:36PM -0700, gordon zhang wrote: > I downloaded python 3.4.2 for c++ and create a vc++ project using python, > but I have no idea what python dlls and other stuff needed to deploy the > products. > > I know if we put Python34.dll and Python.dll in the folder of executa

Re: [Tutor] Does the user need to install Python, when we deploy our c++ products using python?

2014-12-03 Thread Alan Gauld
On 02/12/14 20:28, gordon zhang wrote: I downloaded python 3.4.2 for c++ and create a vc++ project using python, but I have no idea what python dlls and other stuff needed to deploy the products. Python is an interpreter so you will need the full Python interpreter and all the module files th

[Tutor] Does the user need to install Python, when we deploy our c++ products using python?

2014-12-03 Thread gordon zhang
I downloaded python 3.4.2 for c++ and create a vc++ project using python, but I have no idea what python dlls and other stuff needed to deploy the products. I know if we put Python34.dll and Python.dll in the folder of executable, it is not enough. What else do we need to put in the folder of exec

Re: [Tutor] Parse files and create sqlite3 db

2014-12-03 Thread Alan Gauld
On 03/12/14 09:36, jarod...@libero.it wrote: Dear all I aattach the file I want to parse and I wanto to create a sqlite database. The problem is I'm not able to create in the right way because there is some logic problems on my script. I have this code: Do you get an error message? If so pleas

[Tutor] Parse files and create sqlite3 db

2014-12-03 Thread jarod...@libero.it
Dear all I aattach the file I want to parse and I wanto to create a sqlite database. The problem is I'm not able to create in the right way because there is some logic problems on my script. I have this code: import sqlite import sqlite3 import os # Creates or opens a file called mydb with a S