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,935
» Latest member: jonhabraham12109
» Forum threads: 38,731
» Forum posts: 175,516

Full Statistics

Online Users
There are currently 59 online users.
» 2 Member(s) | 52 Guest(s)
Applebot, Bing, AOL, deanhystad, jonhabraham12109

Latest Threads
ChainX Hacker Solutions r...
Forum: News and Discussions
Last Post: jonhabraham12109
Less than 1 minute ago
» Replies: 0
» Views: 1
ChainX Hacker Solutions h...
Forum: News and Discussions
Last Post: jonhabraham12109
1 minute ago
» Replies: 0
» Views: 1
ChainX Hacker Solutions s...
Forum: News and Discussions
Last Post: jonhabraham12109
1 minute ago
» Replies: 0
» Views: 1
Lost USDT in crypto fraud...
Forum: News and Discussions
Last Post: jonhabraham12109
1 minute ago
» Replies: 0
» Views: 1
Can Bitcoin fraud be reve...
Forum: News and Discussions
Last Post: jonhabraham12109
2 minutes ago
» Replies: 0
» Views: 1
Victims of stolen Bitcoin...
Forum: News and Discussions
Last Post: jonhabraham12109
2 minutes ago
» Replies: 0
» Views: 1
USDT drained from scam tr...
Forum: News and Discussions
Last Post: jonhabraham12109
2 minutes ago
» Replies: 0
» Views: 1
Cryptocurrency Tracing an...
Forum: News and Discussions
Last Post: jonhabraham12109
3 minutes ago
» Replies: 0
» Views: 3
BITCOIN AND CRYPTO SCAM R...
Forum: News and Discussions
Last Post: jonhabraham12109
8 minutes ago
» Replies: 0
» Views: 9
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
1 hour ago
» Replies: 0
» Views: 39

 
  Calculate next rows based on previous values of array
Posted by: divon - Nov-23-2021, 04:44 AM - Forum: General Coding Help - No Replies

Hello everyone,
I am trying to calculate the value of the next array from the previous array. The calculation is done like this:
1. I have two array..... More

Print this item

  Button Instance
Posted by: menator01 - Nov-22-2021, 07:25 PM - Forum: Game Development - Replies (3)

I'm playing around with making a button class and have come across problem.
As long as I just have one button the cursor works as expected but, if I ..... More

Print this item

  How to make enemy chase me in pygame?
Posted by: Jan_97 - Nov-22-2021, 07:14 PM - Forum: Game Development - Replies (3)

I've been working on a mini project for a while and I want to make an enemy object follow my player object around the map. I've tried various things l..... More

Print this item

  simple task in python
Posted by: Rapito - Nov-22-2021, 06:15 PM - Forum: Homework - Replies (4)

Write a program that takes input of 8 numbers from the keyboard, and adds them to a list. The screen displays their sum, the maximum and minimum of th..... More

Print this item

  Help request for loop example
Posted by: Jamie_Python - Nov-22-2021, 01:29 PM - Forum: General Coding Help - Replies (1)

Can anyone help please i'm probably off track

# Make a list called mates, containing the names Margot, Kathryn and Prisila
# code the for loop us..... More

Print this item

  calculate data using 1 byte checksum
Posted by: korenron - Nov-22-2021, 12:55 PM - Forum: General Coding Help - Replies (2)

hello,
it's not pure Python question but I did all the code except the last part , and I can't understand what to do :
this is what I need to do:
..... More

Print this item

  loop for dynamic cut string - cleaner way?
Posted by: korenron - Nov-22-2021, 11:07 AM - Forum: General Coding Help - Replies (4)

hello ,
I have a long string of data the (80211 frame - if its help) and I want to cut it to pieces according to this logic:
first byte is the TAG
..... More

Print this item

  Win32Com: How to Execute Find & Replace?
Posted by: JaneTan - Nov-22-2021, 09:44 AM - Forum: Data Science - Replies (1)

I want to replace the contents in my Excel cells. I tried the below 2 codes. But both doesn't work

Thanks

Code 1 :Same Error when I tried..... More

Print this item

Lightbulb Python Obstacles | Kung-Fu | Full File HTML Document Scrape and Store it in MariaDB
Posted by: BrandonKastning - Nov-22-2021, 02:10 AM - Forum: Web Scraping & Web Development - Replies (5)

Python Obstacles | Kung-Fu | Full File HTML Document Scrape and Store it in MariaDB Two Different Ways

A.) Entire HTML Documents w/ T..... More

Print this item

  hexaecimal float
Posted by: Skaperen - Nov-21-2021, 10:52 PM - Forum: General Coding Help - Replies (2)

is there a way to get a float formatted in hexadecimal?

Print this item

  Catching a crash within a library code
Posted by: ebolisa - Nov-21-2021, 09:08 PM - Forum: General Coding Help - Replies (9)

Hi,

How can I catch errors within a library that I cannot modify?
The following code doesn't catch it.
TIA

[python]
import some_lib

try:
..... More

Print this item

  how to get non-exponential format
Posted by: Skaperen - Nov-21-2021, 08:38 PM - Forum: General Coding Help - Replies (1)

how can i get a non-exponential format result for a floating point value. that would be a string where 'e' not in result. like '18014398509481984.0'..... More

Print this item

  format json outputs !
Posted by: evilcode1 - Nov-21-2021, 07:56 PM - Forum: General Coding Help - Replies (3)

hello all ...
iam trying to get json data from a website ... this is my code :
[python]import requests
import json
import time

file1 = open('/..... More

Print this item

Big Grin for loop
Posted by: nadun - Nov-21-2021, 05:07 PM - Forum: Homework - Replies (3)

How to write code to this with for loop and without 2 for loops


X
XX
XXX
XXXX
XXXXX
XXXX
XXX
XX
X

Print this item

  Program to move a dot towards a circle center
Posted by: plumberpy - Nov-21-2021, 01:32 PM - Forum: General Coding Help - Replies (10)

Got an idea but dont know where to start.

I want a program that shows a dot moving from the circumference towards the circle center. The size, colo..... More

Print this item

  Application development in Python
Posted by: muralikreddy - Nov-21-2021, 06:09 AM - Forum: GUI - Replies (4)

Hi,

I'm new to this forum and beginner in python programming. I wanted to write a algo application using Python for trading in stock markets which ..... More

Print this item

  Detect if mouse enters area
Posted by: menator01 - Nov-21-2021, 04:03 AM - Forum: Game Development - Replies (2)

Is there a better way of detecting if the mouse cursor enters a rect other than how I'm doing it here?

[python]
#! /usr/bin/env python3.10

# Do..... More

Print this item

  How to transform from wide to long format in python
Posted by: shantanu97 - Nov-21-2021, 12:39 AM - Forum: General Coding Help - Replies (1)

Check the Problem-2.jpg file.

The files will (should) always be the same from columns A to H. The second last column will be S3Link. The columns be..... More


Attached Files

Thumbnail(s)
   

.csv   VY6_Row1_report_url_detections_per_frame.csv (Size: 10.56 KB / Downloads: 325)
.csv   VY6_Row2_report_url_detections_per_frame.csv (Size: 8.5 KB / Downloads: 301)
Print this item

  [split] How to create a new forum post
Posted by: Aaron - Nov-20-2021, 09:38 PM - Forum: Board - Replies (4)

How do you post on this forum??? Why isn't this more clearly stated?

Print this item

  Problem With Database Calls and Load
Posted by: Timbo03 - Nov-20-2021, 05:20 PM - Forum: General Coding Help - Replies (1)

Hi, I have created an API service using FastAPI, Python and MySQL. The API allows acces to some data in a database. An api request from fastapi trigge..... More

Print this item

  Seaborn and Pandas
Posted by: russellm10 - Nov-20-2021, 04:01 PM - Forum: Data Science - No Replies

Hi All,

I am working with a database that contains dates already in the datetime form 'year-month-day'. This database contains data about most days..... More

Print this item

  Python Obstacles | Karate | HTML/Scrape Specific Tag and Store it in MariaDB
Posted by: BrandonKastning - Nov-20-2021, 01:50 PM - Forum: Web Scraping & Web Development - Replies (8)

Python Obstacles | Karate | HTML/Scrape Specific Tag and Store it in MariaDB

I figure the best way to learn is to make a thread for e..... More

Print this item

  creating two points (x,y) and adding them together..
Posted by: azhag - Nov-20-2021, 02:06 AM - Forum: General Coding Help - Replies (2)

Hi,
I have started learning python this week and am trying to write a simple script. I wish to use a function to create two user defined points A and..... More

Print this item

  matplotlib x axis range goes over the set range
Posted by: Pedroski55 - Nov-20-2021, 01:05 AM - Forum: General Coding Help - Replies (5)

I am just trying to do some simple plots, nothing fancy.

So I am trying y = x**2

I thought I set x in the range -4 to +4 with: x = np.arange(-4, 4, ..... More

Print this item

  printing a string in reverse
Posted by: Skaperen - Nov-20-2021, 12:35 AM - Forum: General Coding Help - Replies (2)

i have a string in a variable x. i want to print that string in reverse order. like:
[output]
>>> x = 'foobar'
>>> print(rev(x))
raboof
>>>
[/..... More

Print this item

  python-3.10.0-amd64 build corrupt?
Posted by: lohphat - Nov-19-2021, 10:05 PM - Forum: News and Discussions - Replies (4)

I installed the python-3.10.0-amd64 package and whenever I try to play a YT vid in a browser, my system would hang. Uninstalling this build fixes the ..... More

Print this item

  Dictionary Referencing
Posted by: nickdavis2017 - Nov-19-2021, 08:27 PM - Forum: General Coding Help - Replies (1)

Hi all,

I'm writing a pretty rudimentary code that essentially plays chess with itself. Dictionaries are the data types used to contain all of the ..... More


Attached Files

.txt   ChessBoard.txt (Size: 566 bytes / Downloads: 309)
.py   ChessUDF.py (Size: 7.75 KB / Downloads: 314)
.py   Robots Play Chess 1.2.py (Size: 2.07 KB / Downloads: 318)
Print this item

  Flask basics... url
Posted by: ifigazsi - Nov-19-2021, 05:40 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi!
When I render the movie.html page, is it possible to change the url as well?

Thank you!

[python]
from flask import Flask, render_template,..... More


Attached Files

.html   movie.html (Size: 336 bytes / Downloads: 385)
Print this item

  Sudden Problem with pexpect
Posted by: gw1500se - Nov-19-2021, 03:49 PM - Forum: General Coding Help - Replies (3)

I have a script the uses pexpect that has been working for years (common story, right?) that suddenly is failing. When I run the command manually I fi..... More

Print this item

  Sum the values in a pandas pivot table specific columns
Posted by: klllmmm - Nov-19-2021, 03:04 PM - Forum: General Coding Help - Replies (1)

I have created a pivot table with multiple index as follows:
[python]
df1 = pd.DataFrame(data = {'Customer':['Tom Ford','Susan Mock','Tom Ford','Tom..... More

Print this item

  UI modules: which is most suitable for macOS app design?
Posted by: Anon_Brown - Nov-19-2021, 01:42 PM - Forum: GUI - Replies (1)

Hi all,
I've been developing a music player app for macOS. I initially used the Tkinter module to implement its GUI. However, I noticed its visual de..... More

Print this item

  How to access parent object attribute
Posted by: Pavel_47 - Nov-19-2021, 09:45 AM - Forum: General Coding Help - Replies (2)

Hello,
There are class A and class B.
Class B is inherited from A:

class B(A):
How to access attribut..... More

Print this item

Exclamation Debian 10 Buster Environment - Python 3.x (MariaDB 10.4.21) | Working Connector?
Posted by: BrandonKastning - Nov-19-2021, 06:49 AM - Forum: Web Scraping & Web Development - Replies (9)

Hello again everyone! Admins, Mods (Thank you again for the prior threads, btw).

I am now up against parsing a huge amount of Data and the only wa..... More

Print this item

  Split string
Posted by: knob - Nov-19-2021, 03:15 AM - Forum: General Coding Help - Replies (2)

Hello ! I'm looking for a way to approach the result below.
Basically it consist in move the number at the end of each line (including the K) from t..... More

Print this item

  module detecting if imported vs not
Posted by: Skaperen - Nov-19-2021, 02:30 AM - Forum: General Coding Help - Replies (1)

how can a module detect if it is being imported, possibly by a command script, as opposed to being run directly?

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  ChainX Hacker Solutions r... Less than 1 minute ago jonhabraham12109 jonhabraham12109 News and Disc...
  ChainX Hacker Solutions h... 1 minute ago jonhabraham12109 jonhabraham12109 News and Disc...
  ChainX Hacker Solutions s... 1 minute ago jonhabraham12109 jonhabraham12109 News and Disc...
  Lost USDT in crypto fraud... 1 minute ago jonhabraham12109 jonhabraham12109 News and Disc...
  Can Bitcoin fraud be reve... 2 minutes ago jonhabraham12109 jonhabraham12109 News and Disc...
  Victims of stolen Bitcoin... 2 minutes ago jonhabraham12109 jonhabraham12109 News and Disc...
  USDT drained from scam tr... 2 minutes ago jonhabraham12109 jonhabraham12109 News and Disc...
  Cryptocurrency Tracing an... 3 minutes ago jonhabraham12109 jonhabraham12109 News and Disc...
  BITCOIN AND CRYPTO SCAM R... 8 minutes ago jonhabraham12109 jonhabraham12109 News and Disc...
  what does % stand for in ... 1 hour ago arbiel arbiel General Codin...
  Scraping a page with log ... 1 hour ago iamaghost Hershien Web Scraping ...
Most views
  The best Prog... 576180
  Tutorial Requ... 497784
  Web Scraping ... 440123
  Newbie with P... 383944
  New Users Int... 366568
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+ 12089
buran 8174
snippsat 7367
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
jonhabraham12109 Today
Hershien Today
Diyaseating Today
marineoman Today
marineservice Today

User Panel Messages

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