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,266
» Latest member: tlandr02
» Forum threads: 38,788
» Forum posts: 175,853

Full Statistics

Online Users
There are currently 29 online users.
» 0 Member(s) | 26 Guest(s)
Bing, Mojeek

Latest Threads
Access keys and values fr...
Forum: General Coding Help
Last Post: buran
8 hours ago
» Replies: 3
» Views: 72
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 128
PermissionError: [Errno 1...
Forum: GUI
Last Post: deanhystad
Nov-15-2025, 02:42 PM
» Replies: 1
» Views: 80
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 01:54 PM
» Replies: 1
» Views: 78
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 332
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 54
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 87
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 312
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 174
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 270

 
  Computer science can you help me with the last part of the code after mentionedWords.
Posted by: shirleylam852 - Nov-26-2020, 11:16 PM - Forum: Homework - Replies (9)

My code currently:
[python]
def cleanedup(s):
alphabet='abcdefghijklmnopqrstuvwxyz@_0123456789'
cleantext= ''
for character in s.lowe..... More

Print this item

  DarkPaw Robot code
Posted by: Tyrelex78 - Nov-26-2020, 07:28 PM - Forum: General Coding Help - Replies (3)

Hello, I looking for some support with the modification of an existing code for Adeept _DarkPaw spider robot. I looking to modify this code to able to..... More

Print this item

  pathlib destpath.exists() true even file does not exist
Posted by: NaN - Nov-26-2020, 07:01 PM - Forum: General Coding Help - Replies (9)

I have a Windows file server (Win Server 2003 Standard x64 Edition) that contains csv files.

On a Debian machine (9.13 Stretch) I mounted a Windows..... More

Print this item

  Scraping all website text using Python
Posted by: MKMKMKMK - Nov-26-2020, 05:36 PM - Forum: Web Scraping & Web Development - Replies (1)

I am very very new to Python at all (so sorry in advance for asking stupid questions). I have an excel sheet with a unique company identifier and the ..... More

Print this item

  Sume Every 10 element in the list and Divided of Sum
Posted by: quest_ - Nov-26-2020, 04:22 PM - Forum: General Coding Help - Replies (7)

Hello
I have this list
b = [0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,01,0,1,0,1,0,1,0,1,0,1,0,1]

And I want to sum every 10 element in..... More

Print this item

  Need help
Posted by: Radez - Nov-26-2020, 03:50 PM - Forum: General Coding Help - Replies (9)

Hi,
I want to read some numbers into my list and i want to insert them in 1 line:
1 2 3 4...
instead of:
1
2
3
4
When I read it in 1 line, it ..... More

Print this item

  I really need help, I am new to python, I am using a book that helps me to learn
Posted by: JaprO - Nov-26-2020, 03:20 PM - Forum: General Coding Help - Replies (5)

[python]
from tkinter import *
from time import sleep, time
from random import randint
from math import sqrt
HEIGHT = 500
WIDTH = 800
window = ..... More

Print this item

  i need some help using this code below
Posted by: xzmix - Nov-26-2020, 02:54 PM - Forum: Homework - Replies (1)

[python]#From this code im suppose to create base64 for encoding and decoding, im new using pyhton and i need this for my school proecjt, can u tell m..... More

Print this item

  How to export to csv the output of every iteration when scrapping with a loop
Posted by: efthymios - Nov-26-2020, 02:23 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi,
I am very new to Python. I am trying to scrape a website and I have create a small code for this:

[python]
select = Select(character.find_el..... More

Print this item

  Account Deletion Request
Posted by: isolatedastronaut - Nov-26-2020, 09:00 AM - Forum: Board - Replies (1)

Hi, I was wondering if one of mods could please delete my account.

Print this item

  Floor division return value
Posted by: Chirumer - Nov-26-2020, 08:57 AM - Forum: General Coding Help - Replies (8)

10//4 evaluates to 2.0

Why is it evaluated as 2.0 and not just 2? The result is an integer after all, isn't it better to store an integer in an int? ..... More

Print this item

  Downloading CSV from a website
Posted by: bmiller12 - Nov-26-2020, 04:15 AM - Forum: Web Scraping & Web Development - Replies (1)

Hello all,

I ran into a few issues when dealing with Python and CSV files.
1. How do I automatically login to a website?
2. How do I automatic..... More

Print this item

  Downloading CSV from a website
Posted by: bmiller12 - Nov-26-2020, 04:09 AM - Forum: Data Science - Replies (4)

Hello all,

I ran into a few issues when dealing with Python and CSV files.
1. How do I automatically login to a website?
2. How do I automatic..... More

Print this item

  Matrix Operations Without Numpy or Incorporating Python into Webpage
Posted by: ebryski - Nov-26-2020, 03:09 AM - Forum: General Coding Help - Replies (1)

Hi. I'm planning on using GlowScript, a program for creating 3D animations where you can write code in Python which is then converted to JavaScript f..... More

Print this item

  To gamify reading
Posted by: test - Nov-26-2020, 02:19 AM - Forum: Code sharing - No Replies

Hi guys!
I wanted to share an idea i have been working on for a while now. My programming skills are still beginner level and i have made a working ex..... More

Print this item

  How can I use Cython to protect my Python Code?
Posted by: TurboC - Nov-25-2020, 10:00 PM - Forum: General Coding Help - Replies (2)

I wrote a software with Python and I would like to share it on internet, but before to do that I want to be sure to protect its source code as much as..... More

Print this item

  Uploading a file to s3
Posted by: pisike - Nov-25-2020, 08:42 PM - Forum: General Coding Help - Replies (2)

I am trying the below to upload a file to s3. I a, using python 2.7.

import boto3
from botocore.exceptions import NoCredentialsError
ACCESS_KEY ..... More

Print this item

  Counting Element in Multidimensional List
Posted by: quest_ - Nov-25-2020, 08:38 PM - Forum: General Coding Help - Replies (1)

Hello,

I have list like that:

[output]
newlist22 [[[0, 1, 1], [0, 1, 1], [1, 0, 1], [0, 0, 0], [1, 1, 1], [0, 1, 1], [1, 0, 1], (0, 1.57, 0)], ..... More

Print this item

  calculator with +2 expressions
Posted by: El_gnichi - Nov-25-2020, 07:59 PM - Forum: Homework - Replies (1)

https://ibb.co/YXwX1FQ
https://ibb.co/Dkyhctz
i'm sorry its in french but i can't find a french forum
but what it tells you is to build a calculato..... More

Print this item

  How to rename a CSV file by adding MODIFIED in the filename?
Posted by: Python_User - Nov-25-2020, 05:56 PM - Forum: General Coding Help - Replies (25)

Hello all,

I am working and editing a CSV file using python. In my python code I want to add the following:

I have a CSV file "Book1.csv" for ex..... More

Print this item

  Duplicating Rows And Put Them In Certain Index Position Query
Posted by: eddywinch82 - Nov-25-2020, 05:20 PM - Forum: General Coding Help - No Replies

Hi there,

I use the following lines of Code in a full Code, to append Rows, based on a Column Value, to a DataFrame I have :-

[python]is_dux = d..... More

Print this item

  Toooo slow....
Posted by: Radez - Nov-25-2020, 04:13 PM - Forum: General Coding Help - Replies (2)

Hi,
My code is meant to go through list 't' and check if any object from it is smaller than the first object in list 'a', if there is one, than it ch..... More

Print this item

  Problem: Restart kernel onPydev console when trying to install a python package
Posted by: poppy2020 - Nov-25-2020, 04:06 PM - Forum: General Coding Help - Replies (1)

Hi I am using Pycharm to work on my data. The console has the following details: Python 3.7.9 on win32 IPython 7.19.0 PyDev console: using IPython 7.1..... More

Print this item

  json function use
Posted by: DrBrownStats - Nov-25-2020, 02:07 PM - Forum: General Coding Help - Replies (1)

I'm new to python so I need a bit of direction. I've got some python code given to me to run against some quite complicated json files. I followed dir..... More

Print this item

  BATTLESHIPS WITH PYTHON
Posted by: BlazingWarlord - Nov-25-2020, 01:16 PM - Forum: Code sharing - No Replies

Tried to make a Battleships game with Python. Code is a little long but works well.
More details: https://thepygrammer.blogspot.com/2020/11/battlesh..... More

Print this item

  webbrowser not working in screen management in kivy
Posted by: thousif - Nov-25-2020, 08:23 AM - Forum: Web Scraping & Web Development - Replies (1)

import webbrowser
def any_Function(instance)
webbrowser.open('https://www.python.org')
<Mainwindow>:
name: "main"
GridLayout:
..... More

Print this item

  Pandas/Dataframes, Strings and Regular Expressions...
Posted by: Stephan - Nov-25-2020, 08:08 AM - Forum: Data Science - No Replies

Hi all

I am new in the Python world (20 years ago I did some C/C++). For being new, I was able to achieve quite a lot so far. I successfully got ar..... More

Print this item

  Adding List Element if Second part of the List Elements are the Same
Posted by: quest_ - Nov-25-2020, 07:35 AM - Forum: General Coding Help - Replies (3)

Hello,

I have this list

newlist = [[[[0, 0, 0], [1, 1, 0], [0, 1, 0], [0, 0, 0], [1, 0, 1], [1, 1, 1]],(1.57, 1.57, 0)],
[[[0, 0, 0], [1, 1, 0..... More

Print this item

  pip errors
Posted by: Paulo_R - Nov-25-2020, 06:46 AM - Forum: General Coding Help - Replies (6)

Am using Windows 10 and have installed Python 3.9. I am an absolute beginner and am trying to explore what packages are installed. When I try:

[pyt..... More

Print this item

  How to make global list inside function
Posted by: CHANKC - Nov-25-2020, 06:42 AM - Forum: General Coding Help - Replies (6)

from output import welcome, more, byebye, summary, invalid, emptylist, close
[python]
def food():
global choice
x = 1
while x > 0 and x <..... More

Print this item

  Why can't numpy array be restored to a saved value?
Posted by: pjfarley3 - Nov-25-2020, 06:40 AM - Forum: General Coding Help - Replies (1)

Why isn't the final value of the numpy array npary in the following code the same as the initial value before some but not all elements of the array w..... More

Print this item

  Listening music from url
Posted by: ebolisa - Nov-25-2020, 06:32 AM - Forum: General Coding Help - Replies (1)

Hi,

The code below plays music on a Raspberry pi.

Instead of selecting music files, I'd like to listen to music from an url.

Can that be possible a..... More

Print this item

  Is there a hierarchical catalog of Anaconda libraries divided by the type of tasks?
Posted by: AlekseyPython - Nov-25-2020, 06:12 AM - Forum: Data Science - Replies (1)

Kubuntu 20.10

I want to see a list of existing Anaconda- libraries, grouped by the type of task being solved. But, unfortunately, I cannot find suc..... More

Print this item

  Databricks, Python Notebook Data file use issue
Posted by: khalid2200 - Nov-25-2020, 03:36 AM - Forum: General Coding Help - No Replies

Hi Guys,
G'day
I am using python notebook at the databricks platform,i have imported a csv file which has two columns C1 and C2. After importing I w..... More

Print this item

  Character Count HW | Need suggestions for optimization
Posted by: NectDz - Nov-25-2020, 02:56 AM - Forum: Code Review - Replies (1)

Hello, my homework asked to make a program that accepts a string as a parameter and that returns the letters that appeared the mo..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Access keys and values fr... 8 hours ago Winfried buran General Codin...
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
  PermissionError: [Errno 1... 11-15, 14:42 Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... 11-15, 13:54 Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... 11-15, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
Most views
  The best Prog... 579036
  Tutorial Requ... 510996
  Web Scraping ... 442041
  Newbie with P... 386084
  New Users Int... 377562
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+ 12108
buran 8196
snippsat 7389
deanhystad 6913
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
tlandr02 Yesterday
Rerus3700 Yesterday
pas88 Yesterday
aanthonymaaleyo3938 Yesterday
chuhlowe 11-15

User Panel Messages

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