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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,600
» Latest member: masonsbore
» Forum threads: 37,373
» Forum posts: 169,837

Full Statistics

Online Users
There are currently 391 online users.
» 3 Member(s) | 382 Guest(s)
Yandex, Baidu, Bing, Google, Applebot, python_an, kucingkembar, deanhystad

Latest Threads
How does this code create...
Forum: General Coding Help
Last Post: buran
35 minutes ago
» Replies: 1
» Views: 21
qpython package error
Forum: General Coding Help
Last Post: masonsbore
1 hour ago
» Replies: 5
» Views: 1,013
Equivalent Python code fr...
Forum: General Coding Help
Last Post: masonsbore
1 hour ago
» Replies: 2
» Views: 684
Converting py to exe
Forum: General Coding Help
Last Post: WiPi
2 hours ago
» Replies: 4
» Views: 373
yield from
Forum: General Coding Help
Last Post: Larz60+
2 hours ago
» Replies: 1
» Views: 55
questions about dict.get
Forum: General Coding Help
Last Post: Larz60+
3 hours ago
» Replies: 1
» Views: 72
The *Best Python Cheat Sh...
Forum: Tutorial Requests and Submissions
Last Post: Annaat20
3 hours ago
» Replies: 1
» Views: 182
convert to bin problem
Forum: General Coding Help
Last Post: kucingkembar
5 hours ago
» Replies: 2
» Views: 103
Waiting screen until user...
Forum: Game Development
Last Post: attractalderman
8 hours ago
» Replies: 2
» Views: 914
Help with writing monitor...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 09:55 PM
» Replies: 3
» Views: 180

 
  How to get the file path and full file name
Posted by: SriMekala - May-16-2019, 01:08 PM - Forum: General Coding Help - Replies (8)

Hi,
I have a file name config_file_data302, I want to get the location of the file name to contain "congfig_file" in a given directory (avoid hidden ..... More

Print this item

  MySQL executemany - Failed executing the operation; Could not process parameters
Posted by: josh_marchant - May-16-2019, 12:42 PM - Forum: General Coding Help - Replies (1)

I've written a bit of python code that essentially will take data from one database (SQL Server 2008) and insert it into another (MySQL). I am fairly ..... More

Print this item

  Timecard
Posted by: tbuff55 - May-16-2019, 12:22 PM - Forum: GUI - Replies (1)

Hey guys thanks for the forum and this resource. I am not much of a python programmer, my experience is mainly within arcpy and automating processes ..... More

Print this item

  XML Parsing Child
Posted by: karthi_python - May-16-2019, 11:42 AM - Forum: General Coding Help - Replies (1)

All,

Good Evening! I'm newbie to Python and this is my first post here.

I am a tableau developer where i have to write a python script to get al..... More

Print this item

  Error in implementing multithreading in a class
Posted by: srm - May-16-2019, 10:26 AM - Forum: General Coding Help - Replies (2)

Hello,
Just started learning multi threading concept in python as beginner..I want to print values
1 to 10 with two different functions using multit..... More

Print this item

  change source from csv data to gsheet
Posted by: Tummerke - May-16-2019, 09:33 AM - Forum: General Coding Help - Replies (1)

Hey Guys,

I have tweaked a code which scrapes data from google search results and place them into a csv file called data.
I already have made an..... More

Print this item

  Iterate through a list of dictionary and append a new value.
Posted by: erina - May-16-2019, 08:07 AM - Forum: General Coding Help - Replies (1)

I'm trying to iterate through the following dictionary and append in the list .

[python]dic={'Dining': [{'Switchboard': [{'Fan': ['01:45.9166666666..... More

Print this item

  Python Coder Amsterdam
Posted by: ISX4 - May-16-2019, 07:35 AM - Forum: Jobs - No Replies

We are looking for a python coder for an initial 3 month contract in Amsterdam to work with our on site team to help with the scripting and release of..... More

Print this item

  How to get values from part of a string?
Posted by: mahi926 - May-16-2019, 07:20 AM - Forum: General Coding Help - Replies (1)

this is the my log


2019-05-15 23:54:00,001 INFO [com.xxxxx.xxxx.xxxx] [xxxxxxxxx] xxxxx xxxxx: 13840.13500213623/16384.0/13840.13500213623

i ..... More

Print this item

  creating parent path
Posted by: Skaperen - May-16-2019, 06:11 AM - Forum: News and Discussions - Replies (3)

IMHO, it would be nice to have some global setting that enables the creation of the path of parent directories in all functions and/or methods that tr..... More

Print this item

  ipv6 addresses
Posted by: Skaperen - May-16-2019, 05:22 AM - Forum: News and Discussions - No Replies

while reading through documentation of module ipaddress, i realized a situation i have had which could use some other kind of ipv6 proce..... More

Print this item

  Parse Binary Data File and convert Epoch Time
Posted by: drdevereaux - May-16-2019, 12:02 AM - Forum: General Coding Help - Replies (1)

Hello All!

I am trying to extract and convert data from a binary data file. Each data entry follows this order:

Print this item

  return outside function
Posted by: seamus - May-15-2019, 07:57 PM - Forum: Homework - Replies (4)

Can anyone please help i am a newbi although an OAP.please see program below copied from "the python book"I have tried indenting and unindenting
Usin..... More

Print this item

  argparse
Posted by: 2skywalkers - May-15-2019, 05:35 PM - Forum: General Coding Help - Replies (4)

I have been playing with argparse for a a few hours and can't figure out something so simple.

[python]
import argparse
parser = argparse.Argument..... More

Print this item

  Ending a thread from another thread
Posted by: SheeppOSU - May-15-2019, 03:45 PM - Forum: General Coding Help - Replies (5)

I have a timer and it is supposed to end the function given to it in a parameter. I don't know how though. Can someone help me. Line 8
[python]import..... More

Print this item

  Advice on Setting Up the Python Environment
Posted by: punksnotdead - May-15-2019, 03:26 PM - Forum: General Coding Help - Replies (1)

I wonder if anyone can give me some general advice on how to get set up as some weird things are happening

1. If I drag and drop a .py file into th..... More

Print this item

  Add space between plots
Posted by: AdWill97 - May-15-2019, 02:04 PM - Forum: Data Science - No Replies

Hello I am plotting 4 different plots in pandas. 3 of which have the same x axis scale, the last one being different. when i run the code and it shows..... More

Print this item

  define a diagonal matrix from a matrix
Posted by: amalalaoui - May-15-2019, 12:29 PM - Forum: Homework - Replies (1)

I need a help plz I want to construct a diagonal matrix D from a matrix A the first element of the diagonal matrix D must be the product of all elemen..... More

Print this item

  please help this newb install pygame
Posted by: iofhua - May-15-2019, 11:59 AM - Forum: General Coding Help - Replies (7)

I just installed python 3.7.3

What is the command to install pygame? I have tried:

pip install pygame
pip3 install pygame
python3 -m pip insta..... More

Print this item

  How to assign a "Score" variable to each element in a list
Posted by: Reta - May-15-2019, 09:33 AM - Forum: Homework - Replies (5)

Hey all, I was tasked to create a game for homework but I still can't seem to figure out how to assign each individual player a "Score" variable that ..... More

Print this item

  Find string and add character - newbi
Posted by: PyDK - May-15-2019, 09:17 AM - Forum: General Coding Help - Replies (1)

I am in the process of learning Python. Now I have a concrete challenge I would like to give my self. Once in a while I need to do some changes in a V..... More

Print this item

  Help me,send message via tkinter
Posted by: chano - May-15-2019, 07:33 AM - Forum: GUI - Replies (2)

Hello boys,
i have a one question,
is it possible tkinter to send email after click 10 times on button, i want when button is push 10 times, at 10th..... More

Print this item

  Publishing two boards side by side
Posted by: DJ_Qu - May-15-2019, 07:28 AM - Forum: General Coding Help - Replies (4)

Hello,
We are implementing a simple console game of battleship. It has two boards (one human, one AI).
I want to have numbers 1 to 10 in a column ne..... More

Print this item

  o365 special subject mail download issue
Posted by: anna - May-15-2019, 07:27 AM - Forum: General Coding Help - Replies (3)

Hi,

I am getting specific mail in Inbox with subject 'ACTIVE DSL DUMP EPOS' on daily basis, with extension .gz. I am trying to download attachment,..... More

Print this item

  Reading a Regex
Posted by: stahorse - May-15-2019, 06:34 AM - Forum: General Coding Help - Replies (4)

Hi,

I have this code:
[python]import re

text = 'NoErrorRE: [EXTERNAL] PL_192_01_28Claire Gravell KingService EscalationNormal'

p = re.compil..... More

Print this item

  moving a sprite
Posted by: pfaber11 - May-15-2019, 06:28 AM - Forum: Game Development - Replies (3)

Could somebody please tell me the best way to move a sprite on the screen in pygame. I don't mind installing another module . thanks.


It's not th..... More

Print this item

  Iterating Variables...?
Posted by: JesseTheNewb - May-15-2019, 05:58 AM - Forum: General Coding Help - Replies (3)

I am brand new to coding (it has been about 48 hours since I decided to give it a go), so I'm sure the answer to this problem is something simple, how..... More

Print this item

  python 2D array creation and print issue
Posted by: developerbrain - May-15-2019, 05:47 AM - Forum: General Coding Help - Replies (5)

[python]
str1 = "snbdsbhaswertybvbx"
str2 = "bhzbhcgsdwertyndvdddwsdws"
str1len = len(str1)
str2len = len(str2)

arr = [[0]*str2len]*str1len

for i in..... More

Print this item

  g Null Byte using DictReader
Posted by: eshwinsukhdeve - May-15-2019, 05:08 AM - Forum: General Coding Help - Replies (13)

I have the below code
[python]
stream = io.StringIO(csv_file.stream.read().decode('utf-8-sig'), newline=None) // error is here

reader = csv.DictR..... More

Print this item

  How to extrac a data table from Pdf document using Python
Posted by: Amit0503 - May-15-2019, 03:09 AM - Forum: General Coding Help - Replies (1)

Hi,
I am working on a project where few data tables from pdf document needs to be extracted into an excel file only when the table page or the table ..... More

Print this item

  Inserting csv values into SQL server
Posted by: vincentwebs - May-15-2019, 02:16 AM - Forum: General Coding Help - Replies (3)

Hey all,

I am running into a small issue that I am unable to get around at the moment. Right now I am trying to insert values into a tablr in sql b..... More

Print this item

  If statement won't print
Posted by: coreywratchford66 - May-14-2019, 10:58 PM - Forum: General Coding Help - Replies (1)

When I run this code there is no error but it isn't printing match like I want it to. Any idea as to why?

The code is as follows.
[python]
while ..... More

Print this item

  convert a list of string+bytes into a list of strings (python 3)
Posted by: pacscaloupsu - May-14-2019, 08:49 PM - Forum: Data Science - Replies (4)

Hello everyone!

I would like to extract the first bytes of a binary file, and convert them into strings, in a list.
[python]
def binaryMethod(..... More

Print this item

  Can Python 3.6 program handle Python 2.7 algorithm?
Posted by: Socrates123 - May-14-2019, 07:37 PM - Forum: General Coding Help - Replies (2)

I have been learning Python programming in Zed A. Shaw's book "Learning Python 3 the Hard Way" in which I write Python programs in Notepad++ and then ..... More

Print this item

  Question in the twilight zone! What would you use if there was no python?
Posted by: rxndy - May-14-2019, 07:03 PM - Forum: Bar - Replies (15)

What language would you use if python did not exist?

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How does this code create... 35 minutes ago Pedroski55 buran General Codin...
  qpython package error 1 hour ago Creepy masonsbore General Codin...
  Equivalent Python code fr... 1 hour ago Mishal0488 masonsbore General Codin...
  Converting py to exe 2 hours ago WiPi WiPi General Codin...
  yield from 2 hours ago akbarza Larz60+ General Codin...
  questions about dict.get 3 hours ago akbarza Larz60+ General Codin...
  The *Best Python Cheat Sh... 3 hours ago kmh Annaat20 Tutorial Requ...
  convert to bin problem 5 hours ago kucingkembar kucingkembar General Codin...
  [PyGame] Waiting screen u... 8 hours ago world90 attractalderman Game Developm...
  Help with writing monitor... Yesterday, 21:55 donottrackmymetadata deanhystad General Codin...
  Cloud computing advice ne... Yesterday, 21:23 sawtooth500 sawtooth500 Data Science
Most views
  The best Prog... 399683
  Web Scraping ... 291776
  Tutorial Requ... 284845
  Newbie with P... 244375
  New Users Int... 228762
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 330
deanhystad 312
Most replies
  New Users Int... 431
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11872
buran 8089
snippsat 7080
deanhystad 6196
metulburr 5150
Top referrers
Googlepro 20
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
masonsbore Today
suvechha Today
nebeolisa Today
ganeshbraj Yesterday
Jaime Yesterday

User Panel Messages

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