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,983
» Latest member: kyleconor797
» Forum threads: 38,733
» Forum posts: 175,567

Full Statistics

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

Latest Threads
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: SpongeB0B
1 hour ago
» Replies: 2
» Views: 87
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Today, 03:05 AM
» Replies: 4
» Views: 2,019
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Yesterday, 07:43 AM
» Replies: 2
» Views: 429
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:21 AM
» Replies: 2
» Views: 1,072
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,130
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 798
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,089
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,537
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,122
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,580

 
  Export to csv instead of json
Posted by: chetansaip99 - Jan-29-2020, 10:51 PM - Forum: General Coding Help - No Replies

Below python scripts gives response in json format. How can alter code to export response in csv format instead of json?

[python]import requests
i..... More

Print this item

  Help with Python function?
Posted by: b_salm - Jan-29-2020, 09:47 PM - Forum: Homework - Replies (2)

[python]def main_questions():
main_question = input("Would you like to take a short quiz?\n")
if main_question == "Yes" or main_question == ..... More

Print this item

  problem with complex scenario
Posted by: jk91 - Jan-29-2020, 09:24 PM - Forum: Homework - Replies (21)

Hi,

How to write program for below complex scenario in python 2 language:-

Chef's ingredients:-


1.The chef receives exactly 1 ingredient pe..... More

Print this item

  could not build an URI from the schemaLocation
Posted by: tharpa - Jan-29-2020, 08:13 PM - Forum: Web Scraping & Web Development - No Replies

I have inherited a Python script from my predecessor. However, it is failing with the error in the subject line. One thing that is making it difficult..... More

Print this item

  Correlation
Posted by: thomaschu - Jan-29-2020, 05:45 PM - Forum: General Coding Help - No Replies

I use the below code to produce the correlation and the p-value.

My questions are :
1. If there are many independent variables (Y) -- there are..... More

Print this item

  Pytonik The python MVC framework
Posted by: pytonik - Jan-29-2020, 05:41 PM - Forum: Web Scraping & Web Development - No Replies

join pytonik and contribute to the development of python mvc framework https://pytonik.com/ and [url= https://github.c..... More

Print this item

  Trouble converting a string into an int
Posted by: DreDigital - Jan-29-2020, 04:29 PM - Forum: Homework - Replies (2)

Hi team,

So I'm writing a simple program that asks for a user input of an integer, and then I need to convert that object into an argument that int..... More

Print this item

  Hashing Passwords – Python Cryptography Examples
Posted by: wagslane - Jan-29-2020, 04:15 PM - Forum: Tutorial Requests and Submissions - No Replies

How and why you should hash passwords in production:

https://qvault.io/2020/01/29/hashing-pas...-examples/

Print this item

  No arrays in Python?
Posted by: twilkinson - Jan-29-2020, 04:14 PM - Forum: General Coding Help - Replies (2)

I'm a complete Python novice, although I've written a million lines of 360 Assembler (40 - 50 years ago!). I'm trying to emulate 2-dimensional arrays..... More

Print this item

  Error using min() function on a list
Posted by: player1681 - Jan-29-2020, 04:08 PM - Forum: General Coding Help - Replies (2)

Hello everybody.

I am trying to find the max and min values of the first two columns of a matrix. I have written the following code

[python]
f ..... More

Print this item

  Select data from between two timestamps
Posted by: Makada - Jan-29-2020, 03:34 PM - Forum: Data Science - Replies (18)

Hi,

I am currently reading data from a .dat file as CSV.
With the script below i manage to get data from the source, but i cant get data when i se..... More

Print this item

  unable to automate table creation with crosstab
Posted by: larryb - Jan-29-2020, 02:27 PM - Forum: Data Science - No Replies

So i'm able to automate parts of the code, but for the actual table creation with "crosstab" i can't quite figure it out. Please help me automate the ..... More

Print this item

  Read csv file data
Posted by: parthi1705 - Jan-29-2020, 01:42 PM - Forum: General Coding Help - No Replies

Hi All,
I have a case where i need to find any wrong in the csv file.
Detailed info:

There are some 20 set of CSV files are there each has unique..... More

Print this item

  Dyanmically Naming Files
Posted by: ovidius - Jan-29-2020, 01:41 PM - Forum: General Coding Help - Replies (3)

Hello Everybody

I wrote this code which takes 2 files removes any letters inside of them keeping only the phone numbers, then removes any duplicate..... More

Print this item

  Get form data
Posted by: JohnnyCoffee - Jan-29-2020, 01:39 PM - Forum: Web Scraping & Web Development - No Replies

How do I get html form field data ?

Print this item

  User defined functions inside other user defined functions
Posted by: WildP - Jan-29-2020, 12:52 PM - Forum: General Coding Help - Replies (1)

I want to make use of a function I have defined inside another function. But I can't figure out how.

I have defined a function in for the turtle-wo..... More

Print this item

  click drag
Posted by: olivers - Jan-29-2020, 12:33 PM - Forum: GUI - Replies (1)

I wonder if I could be pointed towards what is probably a simple coding solution. I am trying to automate a click and drag on a GUI for an audio loope..... More

Print this item

  deleting git branches
Posted by: metulburr - Jan-29-2020, 12:17 PM - Forum: General Coding Help - Replies (16)

So in one of my tutorials i use git branches to show code as there are numerous modules not illustrating it well on the forums posts. So each branch i..... More

Print this item

  object base multi threading
Posted by: maboobelahi93 - Jan-29-2020, 11:21 AM - Forum: General Coding Help - No Replies

Hi,
I am trying to automate the production system using multi-threading. I have a class workstation and it has a function "drawing_thread" that runs ..... More

Print this item

  Interactive online python learning environment freely available
Posted by: kenttong - Jan-29-2020, 03:49 AM - Forum: News and Discussions - No Replies

Hi,

I've made an online python learning environment available at
https://p4kweb.appspot.com

Please take a look and let me know what you think ..... More

Print this item

  HELP! unindent does not match any outer indentation level
Posted by: blackjesus24 - Jan-29-2020, 02:43 AM - Forum: General Coding Help - Replies (2)

Hi everyone i'm trying to print my code, but it's telling me:
"unindent does not match any outer indentation level"


Here is my code:[python]#Add..... More

Print this item

  Help with Python Inheritance (One parent, two children)
Posted by: b_salm - Jan-29-2020, 12:40 AM - Forum: Homework - Replies (3)

[python]
class Question:
def __init__(self, prompt, answer):
self.prompt = prompt
self.answer = answer


ques..... More

Print this item

  How to print cache from Decorators with Memoization
Posted by: OlgaM - Jan-28-2020, 11:46 PM - Forum: General Coding Help - Replies (2)

Hello!

I use this decorator for memoization. But how i can check if results number is really cached?
When i try to print fib.cache or cache[n] i g..... More

Print this item

  Function that searches and shows all socket hosts
Posted by: shaanukstar123 - Jan-28-2020, 10:44 PM - Forum: Networking - Replies (1)

Hi,
I'm currently developing a local client-server multiplayer game using sockets, where the client has to manually connect to a server that is runni..... More

Print this item

  Scraping from multiple URLS to print in a single line.
Posted by: jb89 - Jan-28-2020, 10:36 PM - Forum: Web Scraping & Web Development - Replies (4)

Hi there,

Please forgive me if I have trouble explaining myself, i'm quite new to Python.

Basically I've been tasked with scraping some informat..... More

Print this item

  Lambda function error
Posted by: localsystemuser - Jan-28-2020, 09:03 PM - Forum: General Coding Help - Replies (3)

First of all: I am not familiar with Python, so I am asking for help to fix the existing script. There is a Python script (Lambda function) for deleti..... More

Print this item

  Help coding graph
Posted by: breme57 - Jan-28-2020, 08:26 PM - Forum: Data Science - Replies (1)

hello,
I'm a beginner and i must draw a graph

[img]https://zupimages.net/up/20/05/4tsd.jp[url=https://python-forum.io/thread-24047.html]..... More

Print this item

  random.sample raises OverflowError
Posted by: sky3141 - Jan-28-2020, 06:43 PM - Forum: General Coding Help - Replies (4)

from random import sample

sample(range(2 ** 63 - 1), 3) # OK
sample(range(2 ** 63), 3) # OverflowError
[error]
Traceback (m..... More

Print this item

  Problem with delimiters
Posted by: johnprada - Jan-28-2020, 04:39 PM - Forum: General Coding Help - Replies (5)

Hello everyone
I am quite stuck. i am trying to get a message from a TCP communication protocol, this message is converted in a list of strings and t..... More

Print this item

  Pygame, how to run an if statement only once, help!
Posted by: Kris1996 - Jan-28-2020, 04:32 PM - Forum: Game Development - Replies (5)

Hey guys.

I have been struggling with this problem for some time now, so i have to ask for help.
I got this game i am developing. You play as a sp..... More

Print this item

  Graph that shows predicted vs true values
Posted by: donnertrud - Jan-28-2020, 04:04 PM - Forum: Data Science - Replies (1)

Hey guys,

I have a simple Random Forest Regression Model which is supposed to predict the Number of Likes of an Instagram Picture based on given fe..... More

Print this item

  Problem with delimiters
Posted by: johnprada - Jan-28-2020, 03:59 PM - Forum: General Coding Help - Replies (1)

Hello everyone
I am quite stuck. i am trying to get a message from a TCP communication protocol, this message is converted in a list of strings and t..... More

Print this item

  timedelta object cannot be interpreted as integer
Posted by: palladium - Jan-28-2020, 02:50 PM - Forum: General Coding Help - Replies (5)

The purpose of the code is to parse a text file (output from another program) which contains two date strings and a grade (string), check the interval..... More

Print this item

  Distribution Package Nomenclature
Posted by: OldSubSailor - Jan-28-2020, 02:40 PM - Forum: Bar - Replies (2)

Howdy,
I have just started to study Python in my old age.
As I understand things, Python is named after Monty Python and at times I do see Monty Py..... More

Print this item

  handy network analysts tools
Posted by: KipCarter - Jan-28-2020, 02:20 PM - Forum: News and Discussions - Replies (2)

With all the wealth of code floating around I was a bit surprised that I haven't been able to find an assortment of python based network tools. It may..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Parse Markdown / get the ... 1 hour ago SpongeB0B SpongeB0B General Codin...
  Error: cannot mix str wit... Today, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... Yesterday, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... Yesterday, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
Most views
  The best Prog... 577447
  Tutorial Requ... 500977
  Web Scraping ... 441077
  Newbie with P... 385144
  New Users Int... 369728
Most reputation
buran 581
snippsat 508
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+ 12092
buran 8178
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
kyleconor797 Today
miriamwilliam Today
Davidkiplimo Today
Joliekeva Today
silversimon2 Yesterday

User Panel Messages

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