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,277
» Latest member: NAGASOWMYAGUNDU
» Forum threads: 38,790
» Forum posts: 175,867

Full Statistics

Online Users
There are currently 84 online users.
» 0 Member(s) | 75 Guest(s)
Bing, Mojeek, Google, Applebot, Facebook Dev

Latest Threads
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
9 hours ago
» Replies: 2
» Views: 83
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Today, 06:48 AM
» Replies: 0
» Views: 27
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Today, 04:59 AM
» Replies: 11
» Views: 5,976
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Today, 04:46 AM
» Replies: 2
» Views: 4,282
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 08:34 PM
» Replies: 3
» Views: 287
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:03 AM
» Replies: 1
» Views: 136
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Nov-18-2025, 06:47 PM
» Replies: 2
» Views: 204
best way to learn python
Forum: News and Discussions
Last Post: mamta25
Nov-18-2025, 04:13 PM
» Replies: 5
» Views: 3,108
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Nov-17-2025, 11:47 AM
» Replies: 4
» Views: 248
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Nov-17-2025, 08:44 AM
» Replies: 2
» Views: 166

 
  display single elements in array
Posted by: davidm - Jul-26-2020, 12:02 AM - Forum: General Coding Help - Replies (3)

Hi, I have a 9 by 9 numpy array how do I display the 4 corner cell values:
Top left, top right, bottom left, bottom right.
Thanks

Print this item

  Stop a function if the list it needs is empty
Posted by: Pedroski55 - Jul-25-2020, 10:51 PM - Forum: General Coding Help - Replies (2)

I have a function to take theWords, a list of words or phrases, and make an html table with them. Works OK.

Sometimes, I forget to click the button..... More

Print this item

  Python web crawler and input command not having the correct results see below for mor
Posted by: samlee916 - Jul-25-2020, 08:24 PM - Forum: Web Scraping & Web Development - No Replies

Web crawler crawls a website and exports the results into either a txt, son, XML, or csv file format of your choosing. I am getting an error when I ru..... More

Print this item

  Fasta Files
Posted by: johnny_sav1992 - Jul-25-2020, 04:26 PM - Forum: General Coding Help - Replies (4)

Hello everybody,

i'm new in programming and its the first time i use python. I'm working on a code that should read a fasta file and delete the he..... More

Print this item

  Shutil.which return None after app bundled with fsb
Posted by: yok0 - Jul-25-2020, 04:09 PM - Forum: GUI - Replies (3)

Hi,

I'm working on a small gui project based on pyQT5. The dev wen't fine until I bundled my app with fbs. In my code I have a shutil.which(someApp..... More

Print this item

  ATT00001 instead of PDF attachment to an email
Posted by: dominiklucas - Jul-25-2020, 04:05 PM - Forum: General Coding Help - No Replies

Hello all,
I am new in python world. I have problem and please someone to help me.

I try to create pdf file from python and this pdf file sent wit..... More

Print this item

  Failure to open web pages
Posted by: RenanPereira10 - Jul-25-2020, 03:45 PM - Forum: Homework - Replies (3)

The code is supposed to open 5 links e new tabs but it's given a error.
The code was written bellow:

[python]#! python3
# lucky.py - Opens severa..... More

Print this item

  Returning data from a pyobjc object to python environment
Posted by: newpythonuser100 - Jul-25-2020, 03:38 PM - Forum: Homework - Replies (3)

Hi all

Sorry in advance if this is a basic question - new to python over the recent lockdown and have never ever used objective C...

To start wi..... More

Print this item

  Pressing non-latin characters?
Posted by: Murlog - Jul-25-2020, 03:10 PM - Forum: General Coding Help - No Replies

I'm trying to make a program that reads the buttons you press and then deleting it and instead pressing a ex. russian, arabic etc. letter but I notice..... More

Print this item

  Deleting data in SQlite3
Posted by: SmukasPlays - Jul-25-2020, 02:07 PM - Forum: General Coding Help - No Replies

I did a function to delete a row in sqlite3 and it worked. But the database only shows that the data was exclude when I close and run my program agai..... More

Print this item

  Execute SQL Server Stored Procedures
Posted by: eslamerman - Jul-25-2020, 01:32 PM - Forum: Data Science - Replies (4)

Hi,

I would like to execute the below statment using python on sql server. The statment is working on sql sqerver. But when i tried to execute as ..... More

Print this item

  Unable to Validate csv blanck data and write in csv
Posted by: prashant18 - Jul-25-2020, 12:08 PM - Forum: General Coding Help - No Replies

Hi Support,
I have one csv file and some field is blank. now i m writing code to read csv file and if filed is blank then take the input from the use..... More

Print this item

  Help with name error
Posted by: djwilson0495 - Jul-25-2020, 09:32 AM - Forum: General Coding Help - Replies (2)

[python]
import random

def add(): # defines sub program
num1 = random.randint(5,20) # creates random number between 5 and 20
num2 = rand..... More

Print this item

  [pandas] How to reshape the list
Posted by: Mekala - Jul-25-2020, 02:09 AM - Forum: Data Science - Replies (6)

Hi,
I have blow list, I can reshape it but I want to reshape based on other condition:

#%%
[python]import pandas as pd
import numpy as np
lst =..... More

Print this item

  function to store in caller's context
Posted by: Skaperen - Jul-24-2020, 09:52 PM - Forum: News and Discussions - Replies (7)

i have a big block of code that sets up a couple dozen variables for later code to use. now i need to run this block 2 or 3 times. each time may or ..... More

Print this item

  help with snake game
Posted by: blacklight - Jul-24-2020, 06:37 PM - Forum: Game Development - Replies (3)

question: I have a check if the snake.left(x coordinate) == fruit.left, the rand function should be called and the fruit spawns at a different locatio..... More

Print this item

  Select correct item from list for subprocess command
Posted by: pythonnewbie138 - Jul-24-2020, 06:15 PM - Forum: General Coding Help - Replies (6)

I'm having trouble getting my user input into a subprocess command. Everything seems to work fine until it takes the screenshot and it ends up choosin..... More

Print this item

  Enhanced properties with some Metaprogramming
Posted by: mnesarco - Jul-24-2020, 05:42 PM - Forum: Code sharing - No Replies

Hi Friends,
I want to share with you this small article and code on how I implemented enhanced properties using some metaprogramming in Python.

[..... More

Print this item

  I have an idea and don't know where to start...
Posted by: Bubba123 - Jul-24-2020, 04:35 PM - Forum: Game Development - Replies (1)

[font=Arial, Helvetica, sans-serif]So, my girlfriend is coming out of hospital soon and we both got into coding during lockdown. I want to suprise her..... More

Print this item

  sns point plot grouping
Posted by: Mekala - Jul-24-2020, 04:06 PM - Forum: Data Science - No Replies

Hi,
I have data contain two tools, three groups, my x-axis ID, y-axis is Time. I want to plot as follows:


data:

[python]ID Group ..... More

Print this item

  Exact Match
Posted by: Kristenl2784 - Jul-24-2020, 03:29 PM - Forum: General Coding Help - Replies (2)

Hello,

The first line of code is supposed to find string A180, and shift down 9 rows and grab that value. My problem is, is that I also have A180X..... More

Print this item

  bouncing ball with variable collision points (in time)
Posted by: Zhaleh - Jul-24-2020, 02:36 PM - Forum: General Coding Help - Replies (1)

Hi everybody.
I have a piece of code, generating a bouncing ball with equal time intervals (collision points occur in equal time durations). What I n..... More

Print this item

  2 errors in code
Posted by: numbnumb54 - Jul-24-2020, 02:05 PM - Forum: General Coding Help - Replies (2)

I get the following errors from my code:

[error]attachment = open(Assessments, 'rb')
TypeError: expected str, bytes or os.PathLike object, not li..... More

Print this item

  How do I find if a function has been defined?
Posted by: AndyHolyer - Jul-24-2020, 11:33 AM - Forum: General Coding Help - Replies (3)

Some explanation of what I'm trying to do (sorry if this is too long, the tl:dr is the same as the thread subject):

I'm writing a worksheet on intr..... More

Print this item

  pattern question
Posted by: spalisetty06 - Jul-24-2020, 10:47 AM - Forum: General Coding Help - Replies (1)

'''
5 4 3 2 1
5 4 3 2 1
5 4 3 2 1
5 4 3 2 1
5 4 3 2 1
'''
[python]
'''I am trying to print the pattern'''
n = int(input("Please enter the num..... More

Print this item

  Tableau Time Series Prediction using Python Integration
Posted by: tobimarsh43 - Jul-24-2020, 10:38 AM - Forum: General Coding Help - No Replies

I need help regarding the time series in Tableau. So far Here is what I can do.
> Connect to TabPY
> Call / Run scripts on TabPy

My current..... More

Print this item

  Two variables in loop
Posted by: Ferdis - Jul-24-2020, 10:13 AM - Forum: General Coding Help - Replies (1)

Hello, can someone help me understand how 'for dish, ingredients in food.items()' works?


[python]
def all_recipes_with(food):
result_dict=..... More

Print this item

  pattern question
Posted by: spalisetty06 - Jul-24-2020, 09:57 AM - Forum: General Coding Help - Replies (2)

How can I add a space in between numbers?
[python]
n = int(input("Please enter the number of times "))
for i in range(1, n+1):
for j in range(..... More

Print this item

  Arrays in MATLAB and PYTHON
Posted by: cokhuatlanyeuthuongconhetmuc - Jul-24-2020, 09:01 AM - Forum: General Coding Help - Replies (2)

Hello everyone, I am a newbie at Python. I want to "translate" my code in MATLAB into Python but meet a lot of problems.
For example, this is my cod..... More

Print this item

  Decorators and return statements
Posted by: JonEdward - Jul-24-2020, 08:40 AM - Forum: General Coding Help - Replies (2)

Hi again,

I'm trying to understand Decorators and found this short script somewhere on the web. I wondered if anyone would be kind enough to walk thr..... More

Print this item

  for line in new:
Posted by: andrzej357 - Jul-24-2020, 08:30 AM - Forum: General Coding Help - Replies (1)

Hello,
I try to write program who will find the word in the file.

[python]
new=open(r'C:\Users\andrz\Desktop\New folder (3)\New.docx')
for line ..... More

Print this item

  Data binning help please
Posted by: thatlakerboy - Jul-24-2020, 06:04 AM - Forum: Homework - Replies (1)

Hi there, I have a homework where I need to create data bins using a dictionary. The instructions are:

[b]Complete the specification of the bin_dat..... More

Print this item

  Issue accessing data from Dictionary/List in the right format
Posted by: LuisSatch - Jul-24-2020, 05:35 AM - Forum: General Coding Help - Replies (2)

[color=#2980B9]Hi all, I'm using an API to get date-time and temperature for a given coordinates and put that in a chart. Data is flowing fine from se..... More

Print this item

  truncating a string and adding ellipses
Posted by: Skaperen - Jul-24-2020, 05:03 AM - Forum: News and Discussions - No Replies

in a set of functions i am writing there is one that outputs a name and data value given to it. the name usually a string and the data is often a str..... More

Print this item

  Function parameters and values as string
Posted by: infobound - Jul-24-2020, 03:25 AM - Forum: General Coding Help - Replies (1)

Hi all,
I am working on a project with a GUI and I am going to make the interface have multiple possible styles like "Dark Mode". So I thought the b..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [SOLVED] [BeautifulSoup] ... 9 hours ago Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... Today, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... Today, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... Today, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... Yesterday, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... Yesterday, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
  best way to learn python 11-18, 16:13 dutch mamta25 News and Disc...
  [SOLVED] Access keys and ... 11-17, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... 11-17, 08:44 Tuurbo46 Tuurbo46 GUI
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
Most views
  The best Prog... 579182
  Tutorial Requ... 511851
  Web Scraping ... 442136
  Newbie with P... 386215
  New Users Int... 379075
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+ 12109
buran 8196
snippsat 7389
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
NAGASOWMYAGUNDU Today
shipa1autotransport Today
eastnoob Yesterday
SavingSquirrel199835 11-18
Astrobert 11-18

User Panel Messages

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