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,951
» Latest member: Luciana
» Forum threads: 38,726
» Forum posts: 175,524

Full Statistics

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

Latest Threads
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:00 PM
» Replies: 5
» Views: 9,237
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Yesterday, 09:08 AM
» Replies: 0
» Views: 130
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Yesterday, 03:29 AM
» Replies: 2
» Views: 537
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
Yesterday, 02:36 AM
» Replies: 0
» Views: 162
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Sep-22-2025, 08:56 PM
» Replies: 9
» Views: 695
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,934
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,206
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,571
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 3,145
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,876

 
  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

  Choose an element from multidimensional array
Posted by: quest_ - Nov-24-2020, 11:22 PM - Forum: General Coding Help - Replies (2)

Hello,
I want to choose a random element from multidimensional array. I have this code but I have "list indices must be integers or slices not tuple" ..... More

Print this item

  Why is 0.1 * 0.2 arithmetically incorrect?
Posted by: Pedroski55 - Nov-24-2020, 11:18 PM - Forum: General Coding Help - Replies (2)

On the face of it, this seems an easy sum to do:

>>> 0.2 * 0.1
0.020000000000000004

Python is not good at arithmetic?

Print this item

  Formatting lists
Posted by: rturus - Nov-24-2020, 10:57 PM - Forum: General Coding Help - Replies (5)

How can i format lists in columns so that gap between them are even any they are nicely in line?

Thanks.

Print this item

  reading json file
Posted by: DrBrownStats - Nov-24-2020, 10:45 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

  Calculator with logging library
Posted by: Inkanus - Nov-24-2020, 10:42 PM - Forum: General Coding Help - Replies (3)

I wrote a calculator but it doesn't count Smile I have to use the logging library but i don't know how. Previously, everything worked without thi..... More

Print this item

  Is there anyway to make this work?
Posted by: dre - Nov-24-2020, 09:26 PM - Forum: General Coding Help - Replies (3)

Got a question for you. Is it possible to run a line of code, which will have the same outcome, if the host has disabled/modified it?

So here's whe..... More

Print this item

  Stuck on Python Lab, Thank you for your help
Posted by: charliedale55 - Nov-24-2020, 09:06 PM - Forum: Homework - Replies (2)

Hi there,
I am new to Python and currently doing a Open University introductory course. I am currently at the end of Module 2 and have this lab task..... More

Print this item

  Code optimization
Posted by: Vidar567 - Nov-24-2020, 09:03 PM - Forum: General Coding Help - Replies (2)

Hello guys,
Have you got any sugesstions how to optimize my code?
I would like to use maybe other solution to compile faster.
Thank you for any sug..... More

Print this item

  None in the list error
Posted by: Vidar567 - Nov-24-2020, 08:27 PM - Forum: General Coding Help - Replies (2)

My excersise is to output list without occurring in the list.

I made it, but there is another condition which I do not really understand and it giv..... More

Print this item

  Simple Palindrome
Posted by: Inkanus - Nov-24-2020, 08:26 PM - Forum: General Coding Help - Replies (4)

Hi. I have simple program which checks if a string is a palindrome
[python]
def is_palindrome(i):
if len(i) <= 1:
return True
else:..... More

Print this item

  Problem updating value in MySQL database
Posted by: dangermaus33 - Nov-24-2020, 08:15 PM - Forum: General Coding Help - Replies (1)

I made a simple app to read the product names and prices from a small database. You can change the prices and then commit them back to database. It ru..... More

Print this item

Sad Thanks in advance for your help
Posted by: sabe - Nov-24-2020, 07:28 PM - Forum: Homework - Replies (1)

[python]kilometres = int(input("Enter value in kilometres: "))
conv_fac = 0.6214
miles = kilometres * conv_fac
print('%0.2f kilometers is equal to ..... More

Print this item

  Update: Managed cloud hosting provider BFCM offer 2020
Posted by: johncamp - Nov-24-2020, 06:22 PM - Forum: Bar - No Replies

Hi All,

Its a opportunity for web developers and online business owner to get exclusive discount from top cloud provider.

This BLACK FRIDAY, Clo..... More

Print this item

  “NameError” “is not defined” script that I know works on other computers
Posted by: iamwithstupid - Nov-24-2020, 04:23 PM - Forum: General Coding Help - No Replies

This question isn't that much about coding since the scripts seem to work on Win10. I only have troubles trying to run them on my mac. Some background..... More

Print this item

  Getting the hourly average of a time series dataset
Posted by: Raskou07 - Nov-24-2020, 03:31 PM - Forum: General Coding Help - Replies (10)

Hello guys, I have a large dataframe of 10000 rows and 2 columns .The first column is the dates(years,months,days,hours,minutes) as index. My dates co..... More

Print this item

  module not found, is ok?
Posted by: 3Pinter - Nov-24-2020, 02:47 PM - Forum: General Coding Help - Replies (3)

I created a own __init__.py which call in a script.
Works just fine.

However, I renamed a module (all to lowercase), so a script obviously doesn't..... More

Print this item

  Unfamiliar error
Posted by: ErnestTBass - Nov-24-2020, 02:34 PM - Forum: General Coding Help - Replies (1)

I get the following warning when I try to run a

conda env create -f environment.yml
[error]
Warning: you have pip-installed dep..... More

Print this item

  splitting a csv file to create another csv
Posted by: pisike - Nov-24-2020, 02:14 PM - Forum: General Coding Help - Replies (4)

0


I have a csv file that as data as below in two columns

"ou=People, o=ic.com,o=xerox",{}

"uid=test.test30,ou=People,o=ic.com,o=xerox","{'claimnum..... More

Print this item

  Error on nested loop : Invalid syntax
Posted by: dvazquezgu - Nov-24-2020, 02:06 PM - Forum: General Coding Help - Replies (3)

I have three dictionaries with coordinates looking like this:

First one one_crime_cord Containing a unique crime
[python](34.0141, -118.2978..... More

Print this item

  Creating csv file from another file
Posted by: pisike - Nov-24-2020, 02:02 PM - Forum: General Coding Help - No Replies

I have a file that is exported from an upstream system and data is not the same in each row.

But the main attributes in the file are below. Not a..... More

Print this item

  Output with none, print(x) in function
Posted by: Vidar567 - Nov-24-2020, 01:51 PM - Forum: General Coding Help - Replies (3)

Do you have any suggestions how to change this None in an output value?

I have read that it is because of print(x), but... if I delete or change pr..... More

Print this item

  web developer need for building a coupon sharing site or application
Posted by: kyleroof - Nov-24-2020, 01:01 PM - Forum: General Coding Help - No Replies

We are a team of 5 individuals who work on different small ventures/products. Now we have gotten an idea of starting/building a coupon listing/sharing..... More

Print this item

  queued music wont play, how to do this?
Posted by: glennford49 - Nov-24-2020, 12:54 PM - Forum: General Coding Help - No Replies

queued music wont play next, any idea on this?

[python]
import pygame
import time
pygame.mixer.init()
pygame.mixer.music.load('goodbye.ogg'..... More

Print this item

  Need feedback on my approach for python dashboard for Asana
Posted by: pashtett - Nov-24-2020, 11:51 AM - Forum: General Coding Help - No Replies

I'd like to build my own simple dashboard for Asana project tracker. I imagine it having just simple charts, but I want it to be publicly available. I..... More

Print this item

  working with pyttsx3
Posted by: gr3yali3n - Nov-24-2020, 09:40 AM - Forum: General Coding Help - No Replies

i have been messing around with text the speech module pyttsx3, I have two computers that I am working with, one is a mac and the other is a linux the..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Creating a Mindmap progra... Yesterday, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... Yesterday, 09:08 compuman145 compuman145 General Codin...
  A coding beginner needs h... Yesterday, 03:29 Littlefish Littlefish General Codin...
  Is the interpreter that c... Yesterday, 02:36 helendamdam helendamdam General Codin...
  Using a For Loop to subtr... 09-22, 20:56 Anunderling deanhystad General Codin...
  403 Error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  real community 09-15, 20:16 decuser decuser News and Disc...
Most views
  The best Prog... 576760
  Tutorial Requ... 499064
  Web Scraping ... 440557
  Newbie with P... 384524
  New Users Int... 368352
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+ 12088
buran 8176
snippsat 7368
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Luciana Today
MatthewRodia Today
andydt Today
victorcrown Yesterday
Markbel386 Yesterday

User Panel Messages

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