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,498
» Latest member: franklin97355
» Forum threads: 37,266
» Forum posts: 169,393

Full Statistics

Online Users
There are currently 386 online users.
» 1 Member(s) | 379 Guest(s)
Apple, Bing, Google, Yandex, AOL, idev

Latest Threads
write code that resides i...
Forum: General Coding Help
Last Post: franklin97355
13 minutes ago
» Replies: 0
» Views: 2
m3u8 using build-in brows...
Forum: Web Scraping & Web Development
Last Post: kucingkembar
1 hour ago
» Replies: 2
» Views: 98
Elegant way to apply each...
Forum: General Coding Help
Last Post: deanhystad
2 hours ago
» Replies: 5
» Views: 176
I don't know what is wron...
Forum: General Coding Help
Last Post: menator01
5 hours ago
» Replies: 2
» Views: 145
encrypt data in json file...
Forum: General Coding Help
Last Post: deanhystad
7 hours ago
» Replies: 1
» Views: 54
Sorting Steps
Forum: General Coding Help
Last Post: deanhystad
7 hours ago
» Replies: 11
» Views: 345
A Programmer Named Tim
Forum: Board
Last Post: Gribouillis
7 hours ago
» Replies: 3
» Views: 161
Numeric Enigma Machine
Forum: General Coding Help
Last Post: idev
9 hours ago
» Replies: 8
» Views: 209
Variable not defined even...
Forum: General Coding Help
Last Post: Larz60+
10 hours ago
» Replies: 3
» Views: 105
Error (Errno 2), File upl...
Forum: General Coding Help
Last Post: Username_Python1
10 hours ago
» Replies: 0
» Views: 123

 
  My code which adds fibonacci numbers to a list adds too many terms.
Posted by: STBK - Jun-10-2020, 01:58 PM - Forum: General Coding Help - Replies (7)

Hi, I am new to programming and am self-learning, using projecteuler as a source of questions. I am trying to create a program which generates the fib..... More

Print this item

  Tkinter Tic Tac Toe updated
Posted by: menator01 - Jun-10-2020, 01:49 PM - Forum: Code sharing - Replies (3)

Here is the 2nd go.
Hope you enjoy.
As always, I welcome feedback.

[python]
#! /usr/bin/env python3
'''Tkinter TIC TAC TOE'''

# Do the impor..... More

Print this item

  Appending object to array
Posted by: Busby - Jun-10-2020, 01:43 PM - Forum: General Coding Help - Replies (2)

I'm trying to append objects to an array with the following code

[python] model_array = [model 1, model 2, model 3]
json_array = []
m..... More

Print this item

  Find only the rows containing null values
Posted by: Bhavika - Jun-10-2020, 01:06 PM - Forum: General Coding Help - Replies (2)

In a given dataset, I want to print the rows which have null value but with their actual values and not any bool values.
For example, if the dataset ..... More

Print this item

  Package delivery app, what is the best database to use
Posted by: Mainer - Jun-10-2020, 11:49 AM - Forum: News and Discussions - Replies (1)

In dire need of an app to manage 200+ packages on a 600+ box postal route
Need a local file dB to enter 600 box #’s of the route along with road name..... More

Print this item

  tkinter tic tac toe
Posted by: menator01 - Jun-10-2020, 10:44 AM - Forum: News and Discussions - Replies (8)

Just wanted to share the updated graphics view that I'm working on for the simple tic tac toe game I did.
What it looks like on my ubuntu. Since tkin..... More

Print this item

  Matplotlib figsize and centering issue on canvas
Posted by: deffonotsean - Jun-10-2020, 10:31 AM - Forum: GUI - No Replies

I'm trying to center a Matplotlib chart in a GUI using Tkinter. The issue is I can't seem to center the figure in the center of the canvas (as you can..... More

Print this item

  square root of 5 input numbers
Posted by: mrityunjoy - Jun-10-2020, 10:15 AM - Forum: General Coding Help - Replies (1)

Hi,

I have written the below piece of code, but output is showing list every time based on number of input. My expectation is to publish final list..... More

Print this item

  using python with QGIS to disseminate CSV data on a polygon
Posted by: wissam1974 - Jun-10-2020, 10:13 AM - Forum: General Coding Help - No Replies

Hi all,
i am a newbie programmer on QGIS with python.

i am working on QGIS version 3.12.3-București having a python interface prompt to write pyth..... More

Print this item

  PUT http query return <Response [500]>
Posted by: rndoma - Jun-10-2020, 09:41 AM - Forum: Web Scraping & Web Development - Replies (7)

I need to send a Json from a file to a server. The server doesn't allow to send bulk Json, juste one by one. I put my json in a file and I have to sen..... More

Print this item

  StopIteration exception when mock PostgreSQL connection in several tests
Posted by: igor87z - Jun-10-2020, 07:21 AM - Forum: General Coding Help - Replies (1)

Hi
I mock connect to Postgresql(psycopg2) in two tests

[python]from unittest.mock import patch, MagicMock

with patch('psycopg2.pool.ThreadedCon..... More

Print this item

  [Socket] Can a server be accessible from devices not in the same network?
Posted by: SheeppOSU - Jun-10-2020, 05:53 AM - Forum: Networking - Replies (2)

I assume that it has to do with the port and host of the Socket server, and if so, then what host and port can I choose so that devices not just in a ..... More

Print this item

  regular expression
Posted by: pramod - Jun-10-2020, 03:36 AM - Forum: Data Science - Replies (6)

HI i have question on regular expression
i am trying to match the text using re.search

example: [b]original text = '[SYS_1] system application [EN..... More

Print this item

  Pip question
Posted by: millpond - Jun-10-2020, 01:44 AM - Forum: Homework - Replies (1)

Not homework but n00b enough for it to be.

Working with Debian Buster, loaded with system python and Pypi packages. Slowly updating it via Pypi as ..... More

Print this item

  Error When Writing to SQL Table
Posted by: skaailet - Jun-09-2020, 11:13 PM - Forum: General Coding Help - Replies (1)

Im getting an error "the machine refuses it" when running my script to write to a table
[python]
from pylogix import PLC
import sys
sys.path.appen..... More

Print this item

  tkinter tic tac toe
Posted by: menator01 - Jun-09-2020, 11:13 PM - Forum: Code sharing - Replies (2)

A very basic tic tac toe in tkinter. one game win, loose, or draw and the game ends.

[python]
#! /usr/bin/env python3
'''tkinter tic tac toe'''
..... More

Print this item

  My first professional blog post
Posted by: micseydel - Jun-09-2020, 09:58 PM - Forum: Bar - No Replies

For those interested, I recently published my first professional blog post: https://techblog.livongo.com/etl-from-mo...-redshift/

I almost didn'..... More

Print this item

  Computing the distance between each pair of points
Posted by: Truman - Jun-09-2020, 09:31 PM - Forum: Data Science - Replies (11)

[python]
X = rand.rand(10, 2)
%matplotlib inline
import matplotlib.pyplot as plt
import seaborn; seaborn.set() # Plot styling
plt.scatter(X[:, 0]..... More

Print this item

  Turn coordinates in string into a tuple
Posted by: Kolterdyx - Jun-09-2020, 09:20 PM - Forum: General Coding Help - Replies (3)

I have a dict that stores chunk coordinates and their content in a game I'm making. It looks like this


[python]chunks = {
'0,0' : <content>,
'0..... More

Print this item

  Problem Sending a Dataset to a function
Posted by: Astrikor - Jun-09-2020, 09:07 PM - Forum: General Coding Help - Replies (2)

I'm have a problem operating on a set of integers to determine the gradient of the sequence.
in principle it works ok.

I have posted the main cod..... More

Print this item

  Predicting/Forecasting Future Values
Posted by: BadWhite - Jun-09-2020, 07:08 PM - Forum: Data Science - Replies (1)

[b]Hey Guys,

I'm dealing too much with forecasting in my work.So, I made some code that will predict for me the load in my area. The good news is t..... More

Print this item

  Syntax Highlighting in Text Editor
Posted by: ShakeyPakey - Jun-09-2020, 06:43 PM - Forum: GUI - Replies (4)

I am wondering if there is a way using the Python module tkinter to colour text, or do "syntax highlighting". I am making my own text editor using tki..... More

Print this item

  Write to SQL Table
Posted by: skaailet - Jun-09-2020, 05:43 PM - Forum: General Coding Help - Replies (1)

How can I change my code to write to a SQL Table instead to a Excel File

The code I use is this one

[python]from pylogix import PLC
import sys..... More

Print this item

  functions
Posted by: Rudson67 - Jun-09-2020, 04:43 PM - Forum: Homework - Replies (2)

Hi, I have a big problem with this task. Can someone help me? Thank you in advance! :)

Modify the program from point 1 so that the function instead..... More

Print this item

  Turtle python graphics
Posted by: Y0sh1 - Jun-09-2020, 03:16 PM - Forum: General Coding Help - Replies (6)

Hello,

I need help, i need to write a function using turtle in pyhon.
That takes in entry(x0,y0,D)
x0 et y0 are the first coordinate points in t..... More

Print this item

  Pygame : clearing a screen issue
Posted by: Reldaing - Jun-09-2020, 03:14 PM - Forum: Game Development - Replies (4)

Hi, I'm currently stuggling with clearing my screen on pygame when a button is clicked. For example, when pygame.mouse.get_pressed()[0]==1 in my loop ..... More

Print this item

  How to Solving non-linear equation using scipy.optimize fsolve with variable list
Posted by: djhak - Jun-09-2020, 02:57 PM - Forum: General Coding Help - Replies (3)

Hi every one,
when i am trying solve this equation using fsolve with variables as list
[Image: 2ZOfu.png]
can any help ..... More

Print this item

  Why is one duplicate not removed?
Posted by: Emekadavid - Jun-09-2020, 02:11 PM - Forum: General Coding Help - Replies (4)

This code removes the duplicates in two lists. But when I run it, one of the duplicates is not removed. It beats me. Can someone explain to me why.
..... More

Print this item

  Running three-year old python code
Posted by: ErnestTBass - Jun-09-2020, 01:50 PM - Forum: News and Discussions - Replies (4)

If someone has some python 3 code that is say three years old how does one run it? Say it has no requirmenets.txt file so one must run it by one's wit..... More

Print this item

  Problem loading an image dataset into Tensorflow
Posted by: MohammedSohail - Jun-09-2020, 01:47 PM - Forum: General Coding Help - Replies (1)

I was trying to load an image dataset which has 50000 images of cats and dogs.

I don't know the code to load the dataset in tensorflow
If you want..... More

Print this item

  WebDriverException: 'chromedriver' executable needs to be in PATH
Posted by: pyzyx3qwerty - Jun-09-2020, 01:37 PM - Forum: Web Scraping & Web Development - Replies (9)

Running code to scrape items from the website and display it
[python]
from selenium import webdriver
from bs4 import BeautifulSoup
import pandas a..... More

Print this item

  How to load an image dataset into Tensorflow ?
Posted by: MohammedSohail - Jun-09-2020, 01:21 PM - Forum: News and Discussions - No Replies

I was trying to load an image dataset which has 50000 images of cats and dogs.

I don't know the code to load the dataset in tensorflow
If you want..... More

Print this item

  Continuous improvement for Python security
Posted by: ganncamp - Jun-09-2020, 12:48 PM - Forum: News and Discussions - Replies (1)

Hi all,

At SonarSource we're pushing hard this year on Code Quality and Security for Python. Most recently, we've been working on detection of Cros..... More

Print this item

  Please help me to write code for this
Posted by: vij - Jun-09-2020, 12:40 PM - Forum: Homework - Replies (8)

Hi,

can anyone please help me to write code for this one

5 5 5 5 5
5 4 4 4 4
5 4 3 3 3
5 4 3 2 2
5 4 3 2 1

kindly help, matrix value c..... More

Print this item

  Using a list of variables
Posted by: Zane217 - Jun-09-2020, 12:06 PM - Forum: General Coding Help - Replies (6)

Hi all,

I have been working on a robot car for a while in an attempt to teach my son how to code. I have everything working but I am aware that my..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  write code that resides i... 13 minutes ago franklin97355 franklin97355 General Codin...
  m3u8 using build-in brows... 1 hour ago kucingkembar kucingkembar Web Scraping ...
  Elegant way to apply each... 2 hours ago sawtooth500 deanhystad General Codin...
  I don't know what is wron... 5 hours ago shereen menator01 General Codin...
  encrypt data in json file... 7 hours ago jacksfrustration deanhystad General Codin...
  Sorting Steps 7 hours ago MoreMoney deanhystad General Codin...
  A Programmer Named Tim 7 hours ago Angelical Gribouillis Board
  Numeric Enigma Machine 9 hours ago idev idev General Codin...
  Variable not defined even... 10 hours ago CoderMerv Larz60+ General Codin...
  Error (Errno 2), File upl... 10 hours ago Username_Python1 Username_Python1 General Codin...
  web scraping football res... Yesterday, 10:21 terrasamba77 22206290 Web Scraping ...
Most views
  The best Prog... 356491
  Web Scraping ... 256328
  Tutorial Requ... 255675
  New Users Int... 224775
  Newbie with P... 218830
Most reputation
buran 582
snippsat 499
Larz60+ 450
Gribouillis 329
deanhystad 311
Most replies
  New Users Int... 430
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11859
buran 8085
snippsat 7068
deanhystad 6120
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
franklin97355 Yesterday
RobertCOOPS Yesterday
Ronaldweera Yesterday
Sanjayk Yesterday
sagnikcse24 Yesterday

User Panel Messages

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