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,675
» Latest member: KhaledBaqri
» Forum threads: 38,648
» Forum posts: 175,062

Full Statistics

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

Latest Threads
replace or remove text fr...
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 20
» Views: 1,041
Sourcetrail project
Forum: News and Discussions
Last Post: paul18fr
4 hours ago
» Replies: 0
» Views: 25
Deciding on a Macbook Pro...
Forum: Bar
Last Post: techthiru
6 hours ago
» Replies: 0
» Views: 47
Pylance: "... is not a kn...
Forum: General Coding Help
Last Post: MvGulik
8 hours ago
» Replies: 2
» Views: 103
While loop is terminating...
Forum: Homework
Last Post: Plyth
Jul-05-2025, 01:49 AM
» Replies: 2
» Views: 258
PythonPath file
Forum: General Coding Help
Last Post: Pedroski55
Jul-04-2025, 10:56 PM
» Replies: 7
» Views: 19,827
Python Install Mager Help
Forum: News and Discussions
Last Post: snippsat
Jul-04-2025, 09:43 AM
» Replies: 5
» Views: 423
RemoTe server operation w...
Forum: General Coding Help
Last Post: mario17
Jul-04-2025, 07:18 AM
» Replies: 4
» Views: 350
Hide CLI while grabbing i...
Forum: GUI
Last Post: Gribouillis
Jul-03-2025, 08:12 AM
» Replies: 1
» Views: 197
Venv - Python Virtual Env...
Forum: General Coding Help
Last Post: Larz60+
Jul-02-2025, 05:41 PM
» Replies: 4
» Views: 714

 
  Sophie Germain Primes
Posted by: PythonLamer - Oct-27-2017, 06:26 PM - Forum: General Coding Help - Replies (7)

Looking for a way to optimize this to have it run a bit faster:

[python]#!python3

def isPrime(num):
if num < 2:
return False
if num =..... More

Print this item

  how to give your data column names based on char position
Posted by: whyme - Oct-27-2017, 05:10 PM - Forum: General Coding Help - Replies (7)

Hi All

I am very new to python .

I am working with a file with no column header. But the task is to give the file column names based on char p..... More

Print this item

  solve equation
Posted by: haye - Oct-27-2017, 03:56 PM - Forum: Homework - Replies (1)

hi, i did a python program to solve a 2nd degree equation:

[python]from math import *


a = input('a = ')
b = input('b = ')
c = input('c = ')..... More

Print this item

  Python written in Python, written in Python (warning: somewhat heavy image included)
Posted by: Ofnuts - Oct-27-2017, 01:53 PM - Forum: Bar - Replies (3)

All done with four Gimp scripts (all in Python of course)

[Image: aJMshKw.gif]

Print this item

  ValueError: could not convert string to float: Close??
Posted by: BlackHeart - Oct-27-2017, 12:09 PM - Forum: Data Science - Replies (3)

Honestly, I don't even understand what the issue is here... Could you guys help me out please?

It may be referring to one of my columns in my datas..... More

Print this item

  SQLite DB integration duplicate columns
Posted by: rachitmishra25 - Oct-27-2017, 10:59 AM - Forum: General Coding Help - Replies (1)

I am trying to populate an SQLite DB within a python script via a CSV file. I am getting an error whenever my code iterates through a csv that has mul..... More

Print this item

  Embedded python in C
Posted by: alxhoff - Oct-27-2017, 10:58 AM - Forum: General Coding Help - Replies (1)

Hi all,

I am currently writing a program in C where I need to embed a python script as it is part of a testbench that will be comparing many implem..... More

Print this item

  pip list available packages
Posted by: Skaperen - Oct-27-2017, 05:43 AM - Forum: News and Discussions - Replies (16)

how does pip manage packages?

when i run "pip list" it shows many packages that i installed with Ubuntu's apt-get under the names i presume would b..... More

Print this item

  what name should i give ...
Posted by: Skaperen - Oct-27-2017, 04:55 AM - Forum: News and Discussions - Replies (6)

what name should i give to a command that copies lines except for the last N lines?

Print this item

  which would be easier to translate to Python?
Posted by: Skaperen - Oct-27-2017, 04:17 AM - Forum: News and Discussions - Replies (2)

i was looking at these older implementations of a function to convert an integer number to English words.  which of these two do you believe would be ..... More

Print this item

  Panda.read_cvs Issues Reading Certain Columns
Posted by: BlackHeart - Oct-27-2017, 02:48 AM - Forum: Data Science - Replies (5)

Hey guys. I'm trying to get Panda.read_cvs to read certain columns in my dataset. It says that the 'high' column is not in the list...

I'm trying t..... More

Print this item

  Click dropdown menu option with Selenium PyChrome
Posted by: AcszE - Oct-26-2017, 08:17 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello! I'm trying to click on the button of "Suicide or self injury" inside the report menu of youtube. I have already clicked on the "Harmful dangero..... More

Print this item

  Problem with remove Temp Files
Posted by: karlo_ds - Oct-26-2017, 08:09 PM - Forum: General Coding Help - Replies (1)

Hi everyone!

I try to remove the tempfiles in windows 8... I try with Python:

---------------------------------------------------------------..... More

Print this item

  cant save data to text file.
Posted by: darktitan - Oct-26-2017, 05:54 PM - Forum: General Coding Help - Replies (28)

hi
Im trying to save all the generated numbers from my generator  to a text file with file save dialog but it only saves the last line and the text f..... More

Print this item

  snakes & ladders
Posted by: mzmingle - Oct-26-2017, 04:31 PM - Forum: Game Development - Replies (4)

Hi, I'm quite new to pygame & I've been messing around with a few little things on it, but the other day we were set homework to make snakes & ladders..... More

Print this item

  Table Data Model
Posted by: kmcollins - Oct-26-2017, 03:38 PM - Forum: Code sharing - Replies (1)

[python]# Class: TableData
# Date Started: October 22, 2017
# Author: George Keith Watson, a.k.a. Keith Michael Collins
# ..... More

Print this item

  Read txt files in python
Posted by: rii - Oct-26-2017, 03:18 PM - Forum: Homework - Replies (4)

Hi, my teacher just gave me this assignment and i already wrote smt, but it doesn't work... Can anyone help me,please?
-------------------------------..... More

Print this item

  Extracting numbers
Posted by: Ronnie - Oct-26-2017, 02:49 PM - Forum: General Coding Help - Replies (18)

Hello, I am wondering if anyone can help me with my computing code, I have a text file and need to extract the UK phone numbers, and ensure that the p..... More

Print this item

  2 logical problems
Posted by: Peter_EU - Oct-26-2017, 11:37 AM - Forum: Homework - Replies (1)

Deleted. Sorry, confidential reasons.

I am not sure how to delete whole thread so pl, admins, feel free to do so.

Peter the Noob Noob

Print this item

  Python:How to read a recived message that idinfies the client Byte by Byte using UDP
Posted by: learn - Oct-26-2017, 11:31 AM - Forum: Networking - Replies (2)

I am trying to implement a simple scenario in python:

The server waits for the client to send a fixed size(8 Bytes) message that identifies the cli..... More

Print this item

  xmlrpc.client, ServerProxy and null return
Posted by: thepurpleblob - Oct-26-2017, 10:26 AM - Forum: General Coding Help - No Replies

I have a simple bit of code that accesses an XMLRPC server in this case to delete some user accounts.

[python]def __init__(self, host, token):
   ..... More

Print this item

  Possible Scikit-Learn Import Issue?
Posted by: BlackHeart - Oct-26-2017, 08:11 AM - Forum: Data Science - Replies (2)

I keep getting an error when I run this code. I'm thinking it may be because my packages (scikit-learn) are not current enough. I hope this isn't the ..... More

Print this item

  Python requests to loop over the list and click button
Posted by: Prince_Bhatia - Oct-26-2017, 07:52 AM - Forum: Web Scraping & Web Development - Replies (5)

i edited my orginal post after doing hard research

This is my first post in stack overflow. For my question i read this post request using python t..... More

Print this item

  robobrowser, answer authentication-challenge after login
Posted by: shiny - Oct-26-2017, 06:48 AM - Forum: Web Scraping & Web Development - No Replies

I'm really new to python programming. I'm working on automation of a web-browser. I started with selenium, but found it to be really slow for what I n..... More

Print this item

  updating collision handler for pymunk 5.3.2
Posted by: pythony - Oct-26-2017, 05:52 AM - Forum: Homework - Replies (5)

Trying to update this older code --

space.set_default_collision_handler(coll_handler)
[error]Traceback (most recent call last):
..... More

Print this item

  Linear Equations Homework
Posted by: ngr33n - Oct-26-2017, 02:25 AM - Forum: Homework - Replies (3)

I'm a little bit confused with what this method is supposed to do. Here's the full description:

"Write a class for linear equations. A generic line..... More

Print this item

  getting nanoseconds in python
Posted by: Skaperen - Oct-26-2017, 02:03 AM - Forum: General Coding Help - Replies (8)

current versions of Linux are able to provide the current time to processes at the full resolution the hardware is capable of, down to at least nanose..... More

Print this item

  cant get the code to give me the position of the word
Posted by: axius23 - Oct-25-2017, 09:17 PM - Forum: Homework - Replies (2)

Hi i have a problem with my homework i cant get the code to give me the pisition of the word.
The question is :
Develop a program that analyses a se..... More

Print this item

  Password Generator
Posted by: pdelnegro - Oct-25-2017, 06:12 PM - Forum: Code sharing - Replies (1)

So, I'm still studying the basics of Python 3, but I decided to put some of it in practice and make my own password generator.
It's Python 3 + PyQt5,..... More

Print this item

  Smoothing Fourier
Posted by: muhsin - Oct-25-2017, 05:21 PM - Forum: General Coding Help - No Replies

Hello;

I am a new user. I would like to smooth the fourier spectrum. Can anyone help me please? The Frequency-Fourier Amp file is attached. Thank y..... More


Attached Files

.txt   Spectrum.txt (Size: 198.12 KB / Downloads: 722)
Print this item

  Requests not behaving...
Posted by: PythonLamer - Oct-25-2017, 04:53 PM - Forum: General Coding Help - Replies (1)

Hey guys,

I've been trying to establish an http connection with requests. The problem is that I'm getting an ssl exceptions error:

requests.exce..... More

Print this item

  Rendering a list in a mako template
Posted by: getre222 - Oct-25-2017, 03:41 PM - Forum: General Coding Help - Replies (10)

[python]
import os
from mako.template import Template

def N_water(z) : # return number of molecules of water [molecule/cm3] in tvs at position z ..... More

Print this item

  Stuck with SQL, singup page plz HELP!
Posted by: Peter_EU - Oct-25-2017, 03:14 PM - Forum: Web Scraping & Web Development - Replies (1)

Hallo,

I don't know what to do!

I am following tutorial: https:https://www.youtube.com/watch?v=0FsvqwRhYdM&t=688s

and I get stuck with comman..... More

Print this item

  UnicodeEncodeError using Windows and IDE-Visual Studio
Posted by: Yaya33 - Oct-25-2017, 03:06 PM - Forum: General Coding Help - Replies (9)

I am new to Python and excited to learn and just hit the ground.
I have Windows and use Visual Studio as IDE. I have got everything set and started to..... More

Print this item

  calling python function in c++ callback getting segmentation fault error
Posted by: Jotirling - Oct-25-2017, 02:00 PM - Forum: General Coding Help - Replies (3)

Please check the below link I have explained all
https://stackoverflow.com/questions/4690...c-callback

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  replace or remove text fr... 1 hour ago Curbie Pedroski55 General Codin...
  Sourcetrail project 4 hours ago paul18fr paul18fr News and Disc...
  Deciding on a Macbook Pro... 6 hours ago techthiru techthiru Bar
  Pylance: "... is not a kn... 8 hours ago MvGulik MvGulik General Codin...
  While loop is terminating... 07-05, 01:49 jumpsworthnow Plyth Homework
  PythonPath file 07-04, 22:56 JohnRLaw Pedroski55 General Codin...
  Python Install Mager Help 07-04, 09:43 bowens1983 snippsat News and Disc...
  RemoTe server operation w... 07-04, 07:18 mario17 mario17 General Codin...
  [WxPython] Hide CLI while... 07-03, 08:12 Winfried Gribouillis GUI
  Venv - Python Virtual Env... 07-02, 17:41 DanneA Larz60+ General Codin...
  [Tkinter] textbox compare... 07-02, 13:40 dmac6809 deanhystad GUI
Most views
  The best Prog... 572438
  Tutorial Requ... 485322
  Web Scraping ... 436970
  Newbie with P... 379826
  Thread remain... 351278
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+ 12071
buran 8173
snippsat 7346
deanhystad 6846
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
as1221 3
Newest members
KhaledBaqri Today
CarlaRogersWI Yesterday
techthiru Yesterday
skylarkuk Yesterday
OLHOSANTOTM 07-05

User Panel Messages

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