15,175 Topics

Member Avatar for
Member Avatar for dilipkk

Hi all, I want to classify movie reviews as positive or negative using machine learning techniques and I want to do this using python. Can any one suggest me how to these things in python. Thanks In Advance :) -Dilip Kumar Kola

Member Avatar for dilipkk
0
102
Member Avatar for snowfish

Is it possible to write a python code to enter password when connect to a bluetooth module? Project that I am doing now is control ON/OFF ports on development board, so to make it more secure I would like to add a password function before get to control ports.

Member Avatar for bluedevices
0
163
Member Avatar for tomtetlaw

how do i exicute python scripts in a c++ program? and what uses would it have?

Member Avatar for Duoas
0
107
Member Avatar for harrykokil
Member Avatar for woooee
0
74
Member Avatar for Coolprogram

Hello all, well, I am new to these forums, and fairly new to Python. I know some python though, so I am not a complete "newb" so to speak. But I was wondering how to have python while loops work for two variables or strings or w.e. here's a piece …

Member Avatar for woooee
0
138
Member Avatar for tomtetlaw
Member Avatar for Florest

I've got a CSV file which has a bunch of stock information I need to whittle down to a specific format for another program to read. The first line in the CSV file contains the header, the CSV file contains 29 keys and I need to get down to 11. …

Member Avatar for sneekula
0
3K
Member Avatar for harrykokil

hi guys.. hw can i set the position of a scale (slidebar) on screen in tkinter??

Member Avatar for sneekula
0
61
Member Avatar for down with socks

[CODE] def translate(response): """Translates an English word into Pig Latin.""" # Initial lists and strings vowels = ["a", "e", "i", "o", "u", "A", "E", "I", "O", "U", "y", "Y"] consonants = ["b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", …

Member Avatar for down with socks
0
184
Member Avatar for dilipkk

For an application, I need to parse a string which contains urls and their titles. For example: 'name="My Mobile Blog" url="http://caydab565.blogspot.com/" name="Creative Disaster" url="http://kevinlara.blogspot.com/" ...' name means title of url here. I want list of strings which contain both title and url. For example: ['name="My Mobile Blog" url="http://caydab565.blogspot.com/"','name="Creative Disaster" url="http://kevinlara.blogspot.com/"'] …

Member Avatar for Gribouillis
0
130
Member Avatar for besktrap

Hi everyone. I'm having a little trouble trying to understand what argument passing really is. I know that it 'passes' arguments, but what does that actually mean and how can you use it to my advantage? ex: [CODE] def New(spam,n=1): [/CODE] so what does that actually do?

Member Avatar for besktrap
0
117
Member Avatar for PurdueSi

Greetings all, I'm trying to post data to a form on a web page using urllib2. Thus far I've had success however once data is entered in the form and the form is submitted, a second confirmation page is loaded where I need to click an 'OK' button again. Here …

0
45
Member Avatar for harrykokil
Member Avatar for Gribouillis
0
52
Member Avatar for Z8934

I’ve got a piece of third party software containing classes that I want to modify by subclassing. My problem is that one of the third party classes is not accessed directly but returned by the third party class through a method call. So: [code]factory = ThirdParty.Factory() node = factory.getNode() #node …

Member Avatar for Gribouillis
0
154
Member Avatar for harrykokil
Member Avatar for Z8934
0
73
Member Avatar for JeyC

Are there python commands to achieve the following : 1. Create new text files 2. Write certain text to these file (similar to DOS Echo> command ???)

Member Avatar for Arrorn
0
131
Member Avatar for sharat87

Hello everyone! just dumped bytes forums and joined daniweb... hope its a good decision :P anyway, could you guys take a second to look at the following code... [code=python] import subprocess as sp cmd = "awk '{print $0}'" ex = sp.Popen(cmd.split(' '), stdin = sp.PIPE, stdout = sp.PIPE, stderr = …

Member Avatar for sharat87
0
4K
Member Avatar for harrykokil

how do I trigger a function after x seconds in pygame?? i have seen the "pygame.time.set_timer(event,ms), but i want to trigger a function instead of an event. hoping for a quick reply thanks...

Member Avatar for Arrorn
0
58
Member Avatar for Foxcow

Whenever I open Python I get Socket error: No connection could be made because the target machine actively refused it. Also I get IDLE's subprocess or personal firewall software is blocking the connection. I was wondering how to fix this?

Member Avatar for lllllIllIlllI
0
90
Member Avatar for lilkid

[ATTACH]9597[/ATTACH] ok i want to read this file into a dictionary and this is the output d={"flight":T34712, From:ABERDEEN, scheduled 0800, remark landed} etc flight is the key do i have to parse the text file i know i cant put it straight into the dictionary as i get this output …

Member Avatar for lilkid
0
160
Member Avatar for jessica2009

[code=python]def main(): print (" PC : Hi there.whats your name?") userit = raw_input (" user :") print (" Pc : Nice to meet you " ) , userit , userit = raw_input(" Do you like python? (A=its Great, B=its Ok, C=its Rotten)") if userit == A: userit = userit.upper() print …

Member Avatar for woooee
0
137
Member Avatar for shadwickman

Hello, I've loved Python ever since I picked it up a couple years ago, but I have a question about the proper way to do something. There's a way of condensing an if/else conditional that has 2 options (True, False), for simple things. Assume that [icode]playerWins[/icode] is a boolean: [code=python] …

Member Avatar for shadwickman
0
111
Member Avatar for crumpet

Hi, I'm trying to create a "command line" in Python, which makes a user input a certain command and its associated data, without the use of brackets. So the user would input: >>> test 1 2 3 So it would carry out a command: [CODE=python] def test(firstnum,secondnum,thirdnum): return firstnum,secondnum,thirdnum [/CODE] …

Member Avatar for crumpet
0
152
Member Avatar for DisembodiedLoaf

I have two programs I've been working on for my class but I keep getting different errors. First one: Write a boolean function called isTriangle that receives three numbers and returns true or false based on whether or not the numbers are possible lengths of a triangle. If the sum …

Member Avatar for shadwickman
0
178
Member Avatar for jessica2009

[code=python]def main(): print (" PC : Hi there.whats your name?") userit = raw_input (" user :") print (" Pc : Nice to meet you " ) , userit , userit = raw_input(" Do you like python? (A=Its Great, B=Its Ok, C=Its Rotten)") if userit == A: userit = userit.upper() print …

Member Avatar for vegaseat
0
119
Member Avatar for jessica2009

python program to engage a user in conversation.requirements are a. firts question should ask the user for name .this name should then be used with the following questions b.Ask 4 more questions c. Each question should have 3 possible answers.That us option A,B or C(only) d. Have a different comment …

Member Avatar for jessica2009
0
99
Member Avatar for harrykokil

how can threading in python help me in my traffic simulation project? can i use it to detect other cars?

Member Avatar for scru
0
65
Member Avatar for lilkid

[ATTACH]9572[/ATTACH] Hello basically ive parsed a website's data into an object. I wrote it to file and read it back in to write to a dictionary. but when i read it in it reads it like 3 times. so im a bit confused as to why ad would like to …

Member Avatar for lilkid
0
125
Member Avatar for loren41

[B]I have a text file that contains multiple records. Within the records, I am able to locate the line containing the desired text and read it into a string. Inside the line, I know the number of the starting character for the words I need. The length of the substring …

Member Avatar for sneekula
0
255
Member Avatar for Darkangelchick

Hey guys I have to create a python version of Tic Tac Toe, but does anyone know if it's possible to make this using Tkinter? I think I have to have it nice and bright and colourful, therefore TKinter is the only solution i can think of using Python. Any …

Member Avatar for woooee
0
630

The End.