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,304
» Latest member: IFDA123
» Forum threads: 38,798
» Forum posts: 175,903

Full Statistics

Online Users
There are currently 44 online users.
» 0 Member(s) | 37 Guest(s)
Bing, Google, AOL, Facebook Dev

Latest Threads
Python is not working on ...
Forum: General Coding Help
Last Post: lary_p
1 hour ago
» Replies: 3
» Views: 87
No new line from print in...
Forum: General Coding Help
Last Post: bowlofred
2 hours ago
» Replies: 2
» Views: 27
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
3 hours ago
» Replies: 8
» Views: 642
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Yesterday, 04:48 AM
» Replies: 6
» Views: 7,803
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 130
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 112
My regex function is not ...
Forum: General Coding Help
Last Post: perfringo
Nov-26-2025, 08:47 AM
» Replies: 3
» Views: 196
best way to learn python
Forum: News and Discussions
Last Post: ichsanputr
Nov-26-2025, 04:40 AM
» Replies: 6
» Views: 3,210
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Nov-25-2025, 02:50 AM
» Replies: 6
» Views: 305
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
Nov-24-2025, 02:18 PM
» Replies: 5
» Views: 190

 
  binary search string help
Posted by: kietrichards - Mar-08-2019, 12:20 PM - Forum: General Coding Help - Replies (1)

Hi! I'm trying to look for a word in my list by way of binary search. But sth doesn;t work. Can sb have a look at it? ;) Thanks!

[python]
infile =..... More

Print this item

  Linear search/searching for a word in a file/list
Posted by: kietrichards - Mar-08-2019, 11:22 AM - Forum: General Coding Help - Replies (3)

Guys, I have to make a program that and then asks user to input some word let's say (until user types STOP) and then checks if the word is in the list..... More

Print this item

  Update plot by <Return> bind with entry widget
Posted by: Zorro - Mar-08-2019, 10:41 AM - Forum: GUI - Replies (1)

Hey guys.. I need short hint:

I want to update my matplotlib plot after the user enters a number in Entry widget and [b]hint <Return>..... More

Print this item

  Getting the maximum point of the graph from the text file
Posted by: Erfans - Mar-08-2019, 09:14 AM - Forum: General Coding Help - Replies (2)

Hello
I have a text file written in the beginning of the file in several lines of English, and then there are two columns of numbers, the first colum..... More

Print this item

  Looking for simple help - text file stripping
Posted by: DerekK - Mar-08-2019, 08:13 AM - Forum: General Coding Help - Replies (1)

Hi - I'm looking for really simple Python code that will strip everything out of a text file and only leave the lines that have a (F)

I'm a complet..... More

Print this item

  IP Subnet is asked from user
Posted by: Mahmut - Mar-08-2019, 07:30 AM - Forum: General Coding Help - Replies (1)

Hi,

I am trying to force the user enter IP format with below code. However, it does not work. User should be enter x.x.x.x/y format for IP to conti..... More

Print this item

  How to show graph as a slideshow in PyQt5 using matplotlib
Posted by: binsha - Mar-08-2019, 03:58 AM - Forum: GUI - No Replies

I am trying to implement a GUI app for graph plotting which should show graph as slideshow so that data can be visualized clearly for the users. Curre..... More

Print this item

  Problem with bindnig for query
Posted by: DT2000 - Mar-08-2019, 03:21 AM - Forum: General Coding Help - Replies (16)

I had an issue with the results of my database query displaying curly brackets at the beginning and end of the results when it populated a tkinter wid..... More

Print this item

  How to stop a loop?
Posted by: beginner1996 - Mar-08-2019, 01:40 AM - Forum: Homework - Replies (2)

How can I add an exit option... I want to be able to select #5 and it exit loop and print me out a total of my selected donuts!

[python]
print("We..... More

Print this item

  testbirds
Posted by: Truman - Mar-08-2019, 01:09 AM - Forum: Bar - Replies (14)

testbirds.com

Does anyone have experience with them as a tester? I've just passed the entry test ( got 5 euros lol ). Can't wait to get their next ..... More

Print this item

  Merging pdfs with PyPDF2
Posted by: Pedroski55 - Mar-07-2019, 11:58 PM - Forum: General Coding Help - No Replies

I have a Human Resources document, a lot of pages, more than 100. I need them as a pdf.

I can batch scan to pdf with my little Epson DS-510, great ..... More

Print this item

  how can a sqlite command like import be executed using sqlite3 (python)
Posted by: Larz60+ - Mar-07-2019, 11:46 PM - Forum: General Coding Help - Replies (1)

I don't know how to do exactly the following using python sqlite3
[python]
SQLite version 3.11.0 2016-02-15 17:29:24
Enter ".help" for usage hints...... More

Print this item

  how to assign variables?
Posted by: RY8 - Mar-07-2019, 11:43 PM - Forum: Homework - Replies (2)

My code
[python]
num1=float(input("Please enter A number"))
num2=float(input("Please enter another number"))
num3=float(input("Please enter anothe..... More

Print this item

  Why is virtualenv not by default relocatable?
Posted by: bpostow - Mar-07-2019, 11:09 PM - Forum: General Coding Help - Replies (1)

I'm working in a system (not my choice) where the code lives on a dropbox, and everyone runs from the shared dropbox. I can't change that, so don't bo..... More

Print this item

  Gamepad vibration in raspberry pi with Python don't work
Posted by: sleepwalk - Mar-07-2019, 10:24 PM - Forum: General Coding Help - No Replies

Before starting the post, thanks in advance for your time! Smile

I'm new with Python although I have some experience with C++, php, arduino....... More

Print this item

  syntax error in an if statement at the else ?
Posted by: Just_started - Mar-07-2019, 08:17 PM - Forum: Homework - Replies (2)

Hi, I'm totally a nob to programming and just started with Python, so please forgive me if I'm not yet too familiar with the terms.

I'm trying to d..... More

Print this item

  Need Help W/ Simple Packet Capture Code
Posted by: Caesars_10th - Mar-07-2019, 08:13 PM - Forum: Networking - Replies (3)

Hey all,

I need help writing a code that can capture packets (pcap) from a dedicated port. All I need is for the code to capture the packet, timest..... More

Print this item

  Latest news on Tim Berners-Lee's Inrupt
Posted by: Larz60+ - Mar-07-2019, 06:27 PM - Forum: News and Discussions - Replies (2)

Latest news on Tim Berners-Lee's Inrupt
This is a fairly new project, but is slowly starting to take off

About Tim Burners-Lee:
Sir Timothy John ..... More

Print this item

  Write in a csv file
Posted by: jeuvrey - Mar-07-2019, 04:32 PM - Forum: General Coding Help - Replies (1)

Hello,
I receive a data stream i want to record in a variable (array, list or dictionnary) and then write these data in a csv file.
My streamed data..... More

Print this item

  Help making enemys?
Posted by: ghost0fkarma - Mar-07-2019, 03:40 PM - Forum: Game Development - Replies (3)

[python]import pygame, sys
from pygame.locals import *

pygame.init()

fps = 30
fpsClock = pygame.time.Clock()

DisplaySurface = pygame.displa..... More

Print this item

  How to ger matching rows data based on index columns
Posted by: SriRajesh - Mar-07-2019, 02:57 PM - Forum: General Coding Help - Replies (1)

I have below pandas dataframe,
[python]
df1:
[python]
A B C D
2000-01-01 0.469112 -0.282863 -1.509059 -1.13..... More

Print this item

  no outcome is printing
Posted by: helpme - Mar-07-2019, 01:55 PM - Forum: General Coding Help - Replies (2)

So this is my code:

[python]num=int(input("How many elements do you want?: "))
arr=list()
for i in range(num):
element=int(input("Input a nu..... More

Print this item

  Holt Winters Forecasting - IndexError
Posted by: Ronnie - Mar-07-2019, 01:02 PM - Forum: General Coding Help - No Replies

Hi All,
I'm currently working on a Holt Winters forecast, however i'm experiencing difficulty in enforcing the trend component I believe? When I try..... More

Print this item

  how to rearrange text
Posted by: Prince_Bhatia - Mar-07-2019, 01:00 PM - Forum: General Coding Help - Replies (1)

hi,

i am reading a cvs which has column in which there is text written like,
new launch,ready to move,under construction
ready to move,under con..... More

Print this item

  Covariance Matrix - Python
Posted by: cesardepaula - Mar-07-2019, 12:27 PM - Forum: General Coding Help - Replies (2)

I am implementing an algorithm in Python where I basically read 02 raster files, transform them to array I apply the function numpy.cov() to calculate..... More

Print this item

  How to get a tabs works exactly same as google chrome
Posted by: sarthak260 - Mar-07-2019, 10:45 AM - Forum: GUI - No Replies

In this GUI i have already used tabs(tkinter notebook) but what i need is that the whole window comes under a single tab and when i press new button t..... More

Print this item

  importing zip file on kaggle??
Posted by: GuJu - Mar-07-2019, 07:35 AM - Forum: General Coding Help - Replies (4)

Hi everyone,
I am trying to import a zip file on kaggle. But I couldn't do it i tried some solutions but it didn't help. Can you help me about this i..... More

Print this item

  When I read csv file i am getting b'Skipping line messages
Posted by: GuJu - Mar-07-2019, 07:25 AM - Forum: General Coding Help - Replies (4)

Hi,
I read a csv file, so it reads and i can make something on it there is no problem for this. But I get lots of b'Skipping line messages. I don't w..... More

Print this item

  A crucial question on coexistence of Py2-Py3 under Ubuntu distro
Posted by: samsonite - Mar-07-2019, 06:22 AM - Forum: General Coding Help - Replies (7)

Since a couple of hours ago, I believed that (pip) installer was saved somewhere and kept when libraries were called by Python2 or Python3.

Opening..... More

Print this item

  Help!! Order form and receipt code
Posted by: beginner1996 - Mar-07-2019, 04:33 AM - Forum: Homework - Replies (2)

Hi!
I am having such a hard time creating my code its for a donut shop order form you enter your name and once you select ur type, and quantity it p..... More

Print this item

  Test Case Assertion Error
Posted by: moga2003 - Mar-07-2019, 03:39 AM - Forum: General Coding Help - Replies (10)

Good evening,

I am running the unittest in Python for my code and I am getting errors/Failures. I am unsure how to fix it, or what the errors mean ..... More

Print this item

  Accessing nested keys and values in Dictreader
Posted by: cartographer72 - Mar-07-2019, 02:28 AM - Forum: Homework - Replies (2)

Hello,
I'm using Dictreader to store a CSV with column headers in a container. I didn't have any issues bringing the CSV into the
container, but I c..... More

Print this item

  strftime
Posted by: Skaperen - Mar-07-2019, 12:58 AM - Forum: News and Discussions - No Replies

datetime.datetime.strftime()
vs.
time.strftime()

there is a difference in supported formatting. the "%f" specification is supported in the forme..... More

Print this item

  How to pass arguments in QDBusConnection connect() method
Posted by: Alfalfa - Mar-06-2019, 11:20 PM - Forum: GUI - Replies (1)

I want to execute commands when some dbus signals are fired. Usually, I make a slot for each signals and it work just fine. However, in this case I ne..... More

Print this item

  what am i doing wrong? i have SyntaxError: invalid syntax
Posted by: whatloop - Mar-06-2019, 10:56 PM - Forum: General Coding Help - Replies (3)

[python]
def summation(n):
total = 0
for count in range(1,n + 1):
total += count
return total

def main..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Python is not working on ... 1 hour ago lary_p lary_p General Codin...
  No new line from print in... 2 hours ago Lou bowlofred General Codin...
  Help with Serial.write in... 3 hours ago racingsubby Larz60+ General Codin...
  Can I develop a live vide... Yesterday, 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...
  best way to learn python 11-26, 04:40 dutch ichsanputr News and Disc...
  data fetching for indian ... 11-25, 02:50 drakhsin Pedroski55 Web Scraping ...
  PyQt5 - Get a parameter f... 11-24, 14:18 Ninja2112 deanhystad GUI
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
Most views
  The best Prog... 579431
  Tutorial Requ... 512530
  Web Scraping ... 442312
  Newbie with P... 386367
  New Users Int... 380595
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 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
IFDA123 Today
TimTom420 Yesterday
cruisesfares Yesterday
SNR Yesterday
Jonathan Yesterday

User Panel Messages

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