Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,312
» Latest member: elizabethlittle6258
» Forum threads: 38,801
» Forum posts: 175,923

Full Statistics

Online Users
There are currently 26 online users.
» 0 Member(s) | 23 Guest(s)
Bing, AOL, Google

Latest Threads
No new line from print in...
Forum: General Coding Help
Last Post: noisefloor
10 hours ago
» Replies: 11
» Views: 319
Python compiler
Forum: General Coding Help
Last Post: noisefloor
10 hours ago
» Replies: 1
» Views: 75
Trading Risk management s...
Forum: Code sharing
Last Post: NeoQuant
Yesterday, 07:34 PM
» Replies: 5
» Views: 94
Standard template Data En...
Forum: Code Review
Last Post: Hosthubac
Yesterday, 05:51 PM
» Replies: 0
» Views: 53
Python Online Compiler
Forum: News and Discussions
Last Post: ichsanputr
Yesterday, 07:39 AM
» Replies: 3
» Views: 11,133
Python is not working on ...
Forum: General Coding Help
Last Post: noisefloor
Nov-28-2025, 10:44 AM
» Replies: 4
» Views: 206
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-28-2025, 04:44 AM
» Replies: 8
» Views: 735
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Nov-27-2025, 04:48 AM
» Replies: 6
» Views: 7,840
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 216
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 172

 
  Python 2 to Python 3 Struct Issue
Posted by: robin73 - Jun-16-2018, 09:35 PM - Forum: General Coding Help - Replies (5)

I'm trying to get the following code to work in Python 3. It is fine in Python 2. I have changed the xranges to range, but there is a problem with..... More

Print this item

  wrong values
Posted by: cybervulcan - Jun-16-2018, 09:14 PM - Forum: General Coding Help - Replies (3)

I entered code from programming book "Python's Companion" about a bill calculator and although the script worked it returned a value of 111.78 when th..... More

Print this item

  Optimization problem using pulp
Posted by: kiki1113 - Jun-16-2018, 09:08 PM - Forum: Homework - No Replies

Hello all - I have an optimization assignment that I'm struggling with - see problem below.
[quote]
Chandler Oil has 5000 barrels of crude oil 1 and..... More

Print this item

  Converting str to int or float
Posted by: juliabrushett - Jun-16-2018, 06:53 PM - Forum: Homework - Replies (6)

Hello,
My assignment is to take in an expression(such as 4 + 5), then calculate. I am to use the .split() function to separate parts of the statemen..... More

Print this item

  Trouble with assigning a string value in conditional statement
Posted by: juliabrushett - Jun-16-2018, 06:18 PM - Forum: Homework - Replies (1)

Hello,

I am having trouble assigning a string value (namely, "Odd" or "Even") to val in my conditional operator. I am to have a user input a numbe..... More

Print this item

  aqurium control
Posted by: trippyt - Jun-16-2018, 04:46 PM - Forum: General Coding Help - Replies (1)

ive made this script with alot of help, i wondered if there was a way to make the time settings adjustable via the lcd im using, just like you would ..... More

Print this item

  Feedback on my first Python module
Posted by: CodeRaker - Jun-16-2018, 12:07 PM - Forum: Code sharing - Replies (11)

Hi there Pyople Shy ,

I'm developing my first python module intended to assist with writing (for now) Ubuntu server administration scripts.
I'..... More

Print this item

  system programming in pythonic code
Posted by: Skaperen - Jun-16-2018, 06:30 AM - Forum: News and Discussions - Replies (3)

i want to (and have) code many system level things in python. i've done lots of that in C already. but i think python is a better choice because, am..... More

Print this item

  Homework help
Posted by: RPC - Jun-16-2018, 06:00 AM - Forum: Homework - Replies (5)

Hello everyone Heart

I have just started a new course in python, and i do not normally ask for help until i find myself against the wall **wal..... More

Print this item

  How to join two dataframe
Posted by: SriRajesh - Jun-16-2018, 05:44 AM - Forum: Data Science - Replies (1)

Hi,

I have below two dataframes, and want to join.

[python]import pandas as pd
import numpy as np

[python]df=pd.DataFrame({'c1':[1,2,3],'c2'..... More

Print this item

  Starter programing using Pyton for Madagascar software.
Posted by: Rosendo - Jun-16-2018, 05:25 AM - Forum: General Coding Help - Replies (1)

lines = {'S':251,'R':782}

color = {'S':4, 'R':2}

for case in 'SR':

# X-Y geometry

Flow(case+'.asc','Line_001.%cPS' % case, '''awk 'NR > 20..... More

Print this item

  [PAID, DJANGO] Push Site To Live
Posted by: atron21 - Jun-16-2018, 05:05 AM - Forum: Jobs - Replies (2)

Hey, I just purchased a domain name using GoDaddy and I need someone to help me push my Django site to production/go live so it can be accessed using ..... More

Print this item

  Developing
Posted by: Demini - Jun-16-2018, 02:25 AM - Forum: News and Discussions - Replies (2)

Is there someone to talk to about developing a application?

Print this item

  program wanted: diff that ignores numbers
Posted by: Skaperen - Jun-16-2018, 02:05 AM - Forum: Bar - No Replies

i often need to see diffs of "log files" which are full of differences that are just differences of numbers that i usually don't care about. i have d..... More

Print this item

  ValueError in function
Posted by: Tipillo - Jun-16-2018, 01:11 AM - Forum: Homework - Replies (2)

Hi, I would like to know how I can improve my function so that I do not trigger the ValueError exception when I do the following(its an implementation..... More

Print this item

  why am I getting "local variable 'x' referenced before assignment"?
Posted by: wlsa - Jun-16-2018, 12:25 AM - Forum: Homework - Replies (6)

Given an array of ints (as a list), print the sum of all the elements.
My code:
[python]
L=[1, 1, 1, 2]
x=0
def sum3(nums):
for i in nums:
..... More

Print this item

  Using MIDI from Python on Windows 7
Posted by: PythonAndMIDIUser - Jun-15-2018, 09:48 PM - Forum: General Coding Help - Replies (3)

Greetings:

I'm looking for a module (a library) that would allow me to use MIDI from Python under Windows 7.
(Specifically I'm trying to access my..... More

Print this item

  beginner programming LED light
Posted by: rbowler - Jun-15-2018, 07:55 PM - Forum: General Coding Help - Replies (2)

Hello.

I am an older student returning to school and a research trainee at a science lab. I am conducting an experiment where I have to program a s..... More

Print this item

  "Help me" questions
Posted by: volcano63 - Jun-15-2018, 07:11 PM - Forum: Board - Replies (11)

I have a question to the forum moderation team. I am just puzzled by all those question with generic titles. Don't you have some mechanism to enforce ..... More

Print this item

  Weather info using user api and city id
Posted by: Vimala - Jun-15-2018, 06:59 PM - Forum: Data Science - Replies (9)

hello I hav ewritten below code to fetch weather info of given location but my program doesn't enter to main part.

[python]from pandas import json..... More

Print this item

  Craps game
Posted by: katiannc - Jun-15-2018, 06:23 PM - Forum: Homework - Replies (1)

Hello I have tried to finish this python skeleton my professor gave and am having trouble doing so here is what I have so far
[python]
from random ..... More

Print this item

  Feedback on a test adventure?
Posted by: Panda - Jun-15-2018, 04:26 PM - Forum: Code sharing - Replies (2)

This is a text-adventure style game based on The Stanley Parable. It's not done yet, but i was hoping to get some feedback before i finish.
[python]# ..... More

Print this item

  How to use .get() for Entry?
Posted by: Nwb - Jun-15-2018, 04:13 PM - Forum: GUI - Replies (4)

I tried a lot of stuff but I kept failing so I gave up.

Here is what I am having a problem with:
[python]
def SubmitCurrency(event):
CurrencyTak..... More

Print this item

  HOw define the colors for two columns?
Posted by: Jack_Sparrow - Jun-15-2018, 02:17 PM - Forum: Data Science - Replies (3)

Hi there,
I am trying to define some colors for two dimensions.


this is my code, where I defined the colors.
[python]
#what is the vote..... More

Print this item

  How to loop through Rows
Posted by: SriRajesh - Jun-15-2018, 01:20 PM - Forum: General Coding Help - No Replies

[python]Hi,

[python]I have belwo DataFrame:

Input1:
first_name pre_score mid_score post_score
UAT_F3 4 25 5
UAT_F5 24 ..... More

Print this item

  SyntaxError: Missing parentheses in call to 'print'
Posted by: sofret - Jun-15-2018, 12:54 PM - Forum: General Coding Help - Replies (3)

Am new to python, a new concept which i love.... i started 3days back.... and am using a text book to teach myself.... i got to a section of the textb..... More

Print this item

  If - a media player exists?
Posted by: Nwb - Jun-15-2018, 12:18 PM - Forum: General Coding Help - Replies (2)

Guys do you have any idea any idea on how to write a condition to check whether a media player exists (I'm only curious for the most part)? When I say..... More

Print this item

  Conditional If Statement: If value contains string then set another column equal to s
Posted by: Jack_Sparrow - Jun-15-2018, 11:42 AM - Forum: Data Science - Replies (2)

I have a column 'original_title', where I have different film titles i.a. all films of Star Wars (+ the name of the episode) and Star Trek (+ the name..... More

Print this item

  Gaining Knowledge by Offering voluntary work
Posted by: aabdi406 - Jun-15-2018, 09:05 AM - Forum: Jobs - Replies (1)

Hi All,

I would like to offer myself for some voluntary work to an experienced programmer who wants to delegate some work (little jobs) so I can ga..... More

Print this item

  importing gym
Posted by: Scott - Jun-15-2018, 08:50 AM - Forum: General Coding Help - Replies (3)

Hi everyone,

I did the pip install gym successfully in the anaconda prompt and now I am trying to run the following code in spyder and am getting a..... More

Print this item

  AttributeError: 'App' object has no attribute 'set_text'
Posted by: Sahil1313 - Jun-15-2018, 08:18 AM - Forum: GUI - Replies (6)

I am creating a python tkinter gui application.When i run my code the gui works fine but the buttons are not working properly.Please see the code belo..... More

Print this item

  Why doesn't this print function work?
Posted by: wlsa - Jun-15-2018, 07:31 AM - Forum: Homework - Replies (3)

The problem:
Given a string, return a new string where the first and last chars have been exchanged.


[python]
str='abfdas'

def front_back(s..... More

Print this item

  return Neural(params)
Posted by: pythonbeginner - Jun-15-2018, 07:09 AM - Forum: Homework - Replies (1)

Hello,

When I run this code:
from neural import Neural
I get this Error:
ImportError: cannot import name 'Neural'

If I change the code:
from..... More

Print this item

  Problem with GUI
Posted by: KostisPanagiotou - Jun-15-2018, 06:16 AM - Forum: GUI - No Replies

[python]import sqlite3
from Tkinter import *
import tkMessageBox
global selected_tuple
import time



class DB:
def __init__(self):
..... More

Print this item

  Trying to write a simple (but not so simple for me) trading algo
Posted by: lightbot - Jun-15-2018, 05:43 AM - Forum: General Coding Help - Replies (1)

Hello guys, I am new to this forum. Sorry if I am posting this at the wrong section. I am very new to Python, and previously have been using R and Mat..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  No new line from print in... 10 hours ago Lou noisefloor General Codin...
  Python compiler 10 hours ago NeoQuant noisefloor General Codin...
  Trading Risk management s... Yesterday, 19:34 NeoQuant NeoQuant Code sharing
  Standard template Data En... Yesterday, 17:51 Hosthubac Hosthubac Code Review
  Python Online Compiler Yesterday, 07:39 alexmaxwell1 ichsanputr News and Disc...
  Python is not working on ... 11-28, 10:44 lary_p noisefloor General Codin...
  Help with Serial.write in... 11-28, 04:44 racingsubby Larz60+ General Codin...
  Can I develop a live vide... 11-27, 04:48 mtrkhan mamta25 Web Scraping ...
  silent deployment Python ... 11-26, 21:58 Bummibaer Larz60+ News and Disc...
  Proposal for PEP 11-26, 15:53 matt Gribouillis News and Disc...
  My regex function is not ... 11-26, 08:47 Moltar1997 perfringo General Codin...
Most views
  The best Prog... 579513
  Tutorial Requ... 512987
  Web Scraping ... 442377
  Newbie with P... 386403
  New Users Int... 381790
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12113
buran 8196
snippsat 7394
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
elizabethlittle6258 Today
StepanVoronin Today
QABOB Today
adityaN Today
NeoQuant Yesterday

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020