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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,650
» Latest member: mirabelmason132
» Forum threads: 38,642
» Forum posts: 175,097

Full Statistics

Online Users
There are currently 537 online users.
» 0 Member(s) | 533 Guest(s)
Baidu, Bing, Google, Yandex

Latest Threads
Python Install Mager Help
Forum: News and Discussions
Last Post: bowens1983
2 hours ago
» Replies: 2
» Views: 215
How to ask Smart Question...
Forum: Board
Last Post: Thatedge
8 hours ago
» Replies: 3
» Views: 5,629
Exercise on reading a chu...
Forum: Homework
Last Post: polytrack
9 hours ago
» Replies: 2
» Views: 1,016
textbox compare command n...
Forum: GUI
Last Post: deanhystad
Yesterday, 09:50 PM
» Replies: 1
» Views: 123
New Users Introduce Yours...
Forum: Bar
Last Post: dmac6809
Yesterday, 02:48 PM
» Replies: 451
» Views: 343,803
How to retain Annotation ...
Forum: Code Review
Last Post: holeioonline
Yesterday, 08:43 AM
» Replies: 2
» Views: 907
Trading Bot written in Py...
Forum: News and Discussions
Last Post: LoriBrown
Yesterday, 07:08 AM
» Replies: 4
» Views: 95,192
replace or remove text fr...
Forum: General Coding Help
Last Post: Curbie
Jun-29-2025, 06:53 PM
» Replies: 13
» Views: 608
locating a pushbutton py ...
Forum: GUI
Last Post: deanhystad
Jun-29-2025, 06:47 PM
» Replies: 2
» Views: 153
Difference and meaning in...
Forum: General Coding Help
Last Post: Gribouillis
Jun-29-2025, 03:41 PM
» Replies: 4
» Views: 204

 
  Noob - What attributes to use for agents in evo sim (GA type)
Posted by: PySam - Sep-11-2017, 02:01 PM - Forum: Data Science - Replies (4)

Ok, hopefully this is not the wrong forum!

I'm a hatchling to Python, but understand general concepts. I want to try my hand at creating a simple lif..... More

Print this item

  API-C: call the next value from a generator
Posted by: mcanonic - Sep-11-2017, 01:52 PM - Forum: General Coding Help - No Replies

Hi all,
this is my first post and I hope that I select the right thread.
The following python code is working and I can call it from my C source cod..... More

Print this item

  How many times does it fit? help please
Posted by: skriff - Sep-11-2017, 01:06 PM - Forum: Homework - Replies (2)

What im trying to do is to check how many times does an 1x1 slice fits in the entire array, i used slice to get array "fragments" but how to check how..... More

Print this item

  Failed when communicating between threads
Posted by: pythonisse - Sep-11-2017, 11:10 AM - Forum: GUI - Replies (3)

Hi everybody,

I am trying to display an image on the window, but when I try it, I got this error:
[b]"QPixmap: It is not safe to use pixmaps outsi..... More

Print this item

  Is there any <> operator in python 3.6
Posted by: rajeev1729 - Sep-11-2017, 06:56 AM - Forum: General Coding Help - Replies (1)

Is there any <> operator in python 3.6. if yes then give me example.

Print this item

  radius of circle question
Posted by: charlottecrosland - Sep-11-2017, 05:28 AM - Forum: Homework - Replies (5)

I'm trying to run this, and it doesn't work. I accept it's a ridiculously easy program. And I'm obviously missing something terribly obvious and eas..... More

Print this item

  brute force
Posted by: skriff - Sep-11-2017, 02:44 AM - Forum: Homework - Replies (4)

I made this brute force code

[spoiler][python]tam = int(input("insert password lenght"))
if tam ==1:
for i in range(48,123):
if (i>=..... More

Print this item

  SoX Sound Exchange sample code to Rec & Play audio file
Posted by: Fran_3 - Sep-11-2017, 12:15 AM - Forum: General Coding Help - Replies (3)

Looking for a sample of how to record a sound file via Python and SoX Wrapper
Ditto for playing a recorded file.

Thanks for any help.

Print this item

  K means clustering using heatmap
Posted by: Rifscape - Sep-10-2017, 11:08 PM - Forum: Homework - No Replies

Hey guys,
So in another post I asked how to get a heat map working. Well I was able to get the heat map to work. But I've ran into another problem re..... More

Print this item

  How to split name.jpg and get the string name
Posted by: Pedroski55 - Sep-10-2017, 10:42 PM - Forum: General Coding Help - Replies (3)

As a beginner, I have almost done what I want to do.

I can use python to resize photos, resize the excel table row heights, put photos in each row..... More

Print this item

  Write two statements to read in values for my_city followed by my_state. Assign log_e
Posted by: Eliteucantbeat - Sep-10-2017, 09:29 PM - Forum: General Coding Help - Replies (1)

You can't edit lines 1-4 and line 11. This is what I have:
[python]current_time = '2014-07-26 02:12:18:'
my_city = ''
my_state = ''
log_entry = ''..... More

Print this item

  tidying Up
Posted by: SummoningZ - Sep-10-2017, 08:47 PM - Forum: Homework - Replies (1)

Hi,

I'm not sure if I have cleaned up my code enough could I make it more tidy?

[python]# PRINT ROWS #
def printing©:
print("1: " + " ".j..... More

Print this item

  parsing values and writing back in xml file
Posted by: deepa - Sep-10-2017, 04:59 PM - Forum: General Coding Help - Replies (4)

Hi All,
I am attempting to parse the values from an xml file ,modify these vales and re-write the new values back into the xml file.
I have parsed t..... More

Print this item

  Supplying 2 arguments to 3-argument function
Posted by: valtih - Sep-10-2017, 03:25 PM - Forum: General Coding Help - Replies (3)

I have the following piece of code
[python]
def visit(self, path, rootf, extraf):
return extraf(path, path.parent().visit(rootf, extraf))
[/..... More

Print this item

  Python 3.6.2 & Mac Sierra 10.12.6
Posted by: eczmrmn - Sep-10-2017, 02:35 PM - Forum: Networking - Replies (3)

Until last month I had been happily using Python 3.6.2 to control a Lifx Z multizone light strip. Then Apple did a security update (10.12.6) to the o..... More

Print this item

  TypeError: 'list' object is not callable
Posted by: rajeev1729 - Sep-10-2017, 12:36 PM - Forum: General Coding Help - Replies (4)

please give a runnable sample of your code with the full error text or a clear description of the problem[python]
aTuple = ('xyz', 'zara', 'abc')
aL..... More

Print this item

  NameError: name 'cmp' is not defined
Posted by: rajeev1729 - Sep-10-2017, 12:17 PM - Forum: General Coding Help - Replies (3)

[python]
list1, list2 = [123, 'xyz'], [456, 'abc']
print cmp(list1, list2)
print cmp(list2, list1)
list3 = list2 + [786];
print cmp(list2, list3)..... More

Print this item

  Facebook AutoPost
Posted by: badpandahere - Sep-10-2017, 11:55 AM - Forum: Web Scraping & Web Development - Replies (6)

Hello and much respect to you all Phyton Lovers! I just started learning C langguage and im not so good at Phyton but my question is:
Is it possible ..... More

Print this item

  Understanding Python terminology
Posted by: GoodGuy - Sep-10-2017, 09:38 AM - Forum: General Coding Help - Replies (3)

I want to learn Py. I have downloaded and installed Python 3.6 and prefer using an IDE.
However I am having big trouble making sense of all the vario..... More

Print this item

  Loop question
Posted by: kraven - Sep-10-2017, 06:19 AM - Forum: Homework - Replies (3)

Extremely new to programming, and I am trying to get this whole loop thing down. I am doing one of the assignment's that I am sure you all have probab..... More

Print this item

  Replace only '-' values with NaN, don't remove minus sign for negative numbers.
Posted by: rajpython - Sep-10-2017, 05:44 AM - Forum: General Coding Help - Replies (2)

I have '-' and some negative numbers '-2.5' in a column of data. How to replace only column values having only '-' with NaN, leaving negative numbers..... More

Print this item

  Using Data
Posted by: RMcGovern - Sep-10-2017, 02:27 AM - Forum: General Coding Help - Replies (5)

I haven't coded a thing in 25 years and that was mostly basic. I don't really understand what the various shells are for. And I'm having issues with..... More

Print this item

  Scrape Multiple items from a webpage
Posted by: Prince_Bhatia - Sep-09-2017, 10:59 PM - Forum: Web Scraping & Web Development - Replies (2)

i am trying to scrape image and table from a wikipedia page and write it into csv but i am confused that how to club them together and write this data..... More

Print this item

  Socialhome v0.4.0 (2017-08-31)
Posted by: dvs1 - Sep-09-2017, 10:24 PM - Forum: News and Discussions - No Replies

[quote]Socialhome is best described as a federated personal profile with social networking functionality. Users can create rich content using Markdown..... More

Print this item

  Window unresponsive when executed.
Posted by: fawazcode - Sep-09-2017, 10:08 PM - Forum: GUI - Replies (2)

I ran the following code in Spyder with Python3 interpreter in windows7.

import tkinter
import tkinter.simpledialog

root = tkinter.Tk()

name..... More

Print this item

  Simple Post in Kali
Posted by: mgeorgevich5317 - Sep-09-2017, 08:27 PM - Forum: General Coding Help - Replies (3)

I tried my first coding in kali on python 3:

>>> !#/usr/bin/python3
... def main():
... print ("Hello Python!")
... if _name_ == "_main_" :..... More

Print this item

  Spyder 3.2.2 (2017-09-05)
Posted by: dvs1 - Sep-09-2017, 08:25 PM - Forum: News and Discussions - No Replies

New features:

- Add a button to Find in Files to make searches case sensitive.
- Extend Find in Files to select other search directories.
- Add a..... More

Print this item

  plotting trend
Posted by: Firstname_Lastname - Sep-09-2017, 06:56 PM - Forum: General Coding Help - Replies (1)

0
down vote
favorite
I have a csv file with data in the following format -

Issue_Type DateTime
Issue1 03/07/2011 11:20:44
Issue2 ..... More

Print this item

  help me this code
Posted by: tahseen - Sep-09-2017, 03:36 PM - Forum: General Coding Help - Replies (1)

def arec(l, b):
return l * b
def asq(s):
return s * s
def atri(h,b):
return (h*b)/2
def acir®:
return 3.14(r*r)

print("Select operation")..... More

Print this item

  Async for loop
Posted by: wavic - Sep-09-2017, 02:38 PM - Forum: Web Scraping & Web Development - Replies (4)

Well, I am not a programmer and lots of programming concepts are unknown for me be but this is a process after all. Slowly but I have some progress.

..... More

Print this item

  PYQT5 - SAVING ON EXCEL
Posted by: thestacked - Sep-09-2017, 12:30 PM - Forum: General Coding Help - No Replies

how can i make this more shortcut ? I don't know how you make it shorter like: prsheet.write(0,0,self.prname_line.text())

def PatientReg(self):

..... More

Print this item

  Trouble with LPtHW exercise 21
Posted by: pyth31 - Sep-09-2017, 12:12 PM - Forum: Homework - Replies (6)

Hi all

Im very new to programming and started Learn Python the Hard Way a week ago. Im currently at exercise 21, a lot of it makes sense but there ..... More

Print this item

  # of Positional arguments to pass for creating an object?
Posted by: burvil - Sep-09-2017, 04:56 AM - Forum: General Coding Help - Replies (2)

I'm getting an error when trying to instantiate a class, where I pass two arguments, and the third one (for self) is implicit. When I only pass in one..... More

Print this item

  The Incredible Growth of Python
Posted by: Skaperen - Sep-09-2017, 04:11 AM - Forum: News and Discussions - No Replies

i'm reading this now ...

https://stackoverflow.blog/2017/09/06/in...th-python/

Print this item

  Problem formatting output text
Posted by: aj347 - Sep-09-2017, 04:03 AM - Forum: Web Scraping & Web Development - Replies (5)

The following text is a small part of a large (4MB) file that I am trying pull text
from and save it to a csv file to open in Excel.

[color=#1ABC9..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Python Install Mager Help 2 hours ago bowens1983 bowens1983 News and Disc...
  How to ask Smart Question... 8 hours ago metulburr Thatedge Board
  Exercise on reading a chu... 9 hours ago Nit_Picker polytrack Homework
  [Tkinter] textbox compare... Yesterday, 21:50 dmac6809 deanhystad GUI
  New Users Introduce Yours... Yesterday, 14:48 Yoriz dmac6809 Bar
  How to retain Annotation ... Yesterday, 08:43 srikrishnan holeioonline Code Review
  Trading Bot written in Py... Yesterday, 07:08 Pizzlew LoriBrown News and Disc...
  replace or remove text fr... 06-29, 18:53 Curbie Curbie General Codin...
  [PyQt] locating a pushbut... 06-29, 18:47 arbiel deanhystad GUI
  Difference and meaning in... 06-29, 15:41 Udbytossen Gribouillis General Codin...
  While loop is terminating... 06-29, 06:19 jumpsworthnow Gribouillis Homework
Most views
  The best Prog... 572378
  Tutorial Requ... 485157
  Web Scraping ... 436906
  Newbie with P... 379748
  Thread remain... 351245
Most reputation
buran 581
snippsat 507
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12068
buran 8173
snippsat 7341
deanhystad 6845
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
as1221 3
Newest members
mirabelmason132 Today
bhawani Today
william8644 Today
bhugaloo Today
polytrack Today

User Panel Messages

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