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,968
» Latest member: seomelbourneaustralia
» Forum threads: 38,730
» Forum posts: 175,550

Full Statistics

Online Users
There are currently 39 online users.
» 2 Member(s) | 31 Guest(s)
Bing, AOL, Applebot, Facebook, snippsat, kshahzad1985

Latest Threads
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
1 hour ago
» Replies: 7
» Views: 2,738
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: tester_V
1 hour ago
» Replies: 5
» Views: 247
looking for help
Forum: Bar
Last Post: PhamMaria
2 hours ago
» Replies: 1
» Views: 1,864
My goal to be hired worki...
Forum: News and Discussions
Last Post: Larz60+
Yesterday, 11:58 PM
» Replies: 1
» Views: 600
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:49 PM
» Replies: 4
» Views: 2,131
My First App
Forum: Code Review
Last Post: carlbidwell
Yesterday, 10:53 AM
» Replies: 8
» Views: 8,696
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 03:54 AM
» Replies: 3
» Views: 592
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,081
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,070
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,342

 
  selection sort
Posted by: Truman - Jun-02-2020, 09:44 PM - Forum: Data Science - Replies (2)

[python]
import numpy as np

def selection_sort(x):
for i in range(len(x)):
swap = i + np.argmin(x[i:])
(x[i], x[swap]) = (x..... More

Print this item

  Simple code error please help
Posted by: bntayfur - Jun-02-2020, 09:10 PM - Forum: General Coding Help - Replies (7)

[python]
try:
age=int(input('please enter your age: '))
if age> 0:
print("You are" + age + "years old!")
elif age> 90:
..... More

Print this item

  input check help!
Posted by: bntayfur - Jun-02-2020, 08:06 PM - Forum: General Coding Help - Replies (3)

Hello, i am new to Python so i couldn't figure out how to check the input.

I want to get an input from the user(integer or float) and want to give ..... More

Print this item

  Developers with networking skills needed for a project
Posted by: TheNextBigThing - Jun-02-2020, 08:05 PM - Forum: Jobs - Replies (3)

I currently work on a project that requires networking programming in python,

The main software i need is a program that when installed, it will c..... More

Print this item

  Change Text Size in Console?
Posted by: ShakeyPakey - Jun-02-2020, 07:58 PM - Forum: General Coding Help - Replies (9)

Hello, everyone!

On Windows 10, I am creating a Python script, but the text output in the console is too tiny. I am aware that I can right-click on..... More

Print this item

  [Errno 1] Operation not permitted
Posted by: whois1230 - Jun-02-2020, 07:47 PM - Forum: General Coding Help - Replies (8)

Hello, I'm trying to run the following program, but I'm getting an error. My OS is Linux Ubuntu 18.04 LTS and the IDE is IDLE.
[python]#!/usr/bin/pyt..... More

Print this item

  Connection timed out error when connecting to SQL server
Posted by: kenwatts275 - Jun-02-2020, 07:13 PM - Forum: General Coding Help - Replies (2)

Hello all,
I am trying to connect to MariaDB on my LINUX server from my PC using the Python mysql.connector.
I can connect to the server via ssh so ..... More

Print this item

  Design of scantling calculation program. Newbie
Posted by: ruy - Jun-02-2020, 06:59 PM - Forum: News and Discussions - Replies (2)

Hi there,

I have basic coding knowledge and I'm trying to write my first project to hone out my skills. I've done plenty of tutorials, have a grasp..... More

Print this item

  If elif else statement not functioning
Posted by: SamDiggityDog - Jun-02-2020, 06:34 PM - Forum: General Coding Help - Replies (4)

I am coding a text based game and I need to find out the name of the players character, and confirm that it is spelled correctly.

[python]def name_..... More

Print this item

  Scraping Data issues
Posted by: TrexKikBut - Jun-02-2020, 05:49 PM - Forum: Web Scraping & Web Development - Replies (1)

I'm trying to scrape data from a game's market and use the data to track it.

So I have the scraper log in, it goes and pulls some items on the mark..... More

Print this item

  Open URL via proxy
Posted by: perseus142 - Jun-02-2020, 04:52 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello team,
I am newbie and I am looking for help.
I would like to access a webpage and retrieve data - sound easy, right ?
However I have to use ..... More

Print this item

  ERR_CONNECTION_CLOSED
Posted by: Tanjeel - Jun-02-2020, 04:33 PM - Forum: Web Scraping & Web Development - Replies (3)

I was trying to download chrome webdriver but it shows ERR_CONNECTION_CLOSED
I'm trying for like 3-4 hrs I thought connection problem at first but it..... More

Print this item

  How to find the first and last of one of several characters in a list of strings?
Posted by: tadsss - Jun-02-2020, 04:29 PM - Forum: General Coding Help - Replies (2)

So I have a list of strings such as this:

my_list=["---abcdefgh----abc--","--abcd-a--","----------abcdefghij----ab-","-abcdef---a-","----abcdefghij..... More

Print this item

  How to get pyreverse to work
Posted by: Emekadavid - Jun-02-2020, 03:42 PM - Forum: General Coding Help - Replies (3)

Good day. I want to get pyreverse to work on my windows 7 so I can use it to study code and its relation to modeling. I am using vs code as my ide. Fo..... More

Print this item

  Convert numpy array to image without loading it into RAM.
Posted by: DreamingInsanity - Jun-02-2020, 03:01 PM - Forum: General Coding Help - Replies (7)

My program can generate huge numpy arrays. Personally, I think a sensible maximum size is an array of shape (819200, 460800, 4) - a 4K (4096x23..... More

Print this item

  Python Developer at IoT Startup, Oslo (relocation)
Posted by: yellowraven_ - Jun-02-2020, 02:11 PM - Forum: Jobs - No Replies

Our client is a Norwegian IoT & Robotics company with global ambitions established in Oslo in 2013. The company helps people to improve the way they l..... More

Print this item

  not able to install buildozer
Posted by: exsudo - Jun-02-2020, 06:24 AM - Forum: GUI - Replies (1)

hello everyone,
while installing the buildozer for deployment of kivy app to android I met an error, not what it is please help me through it, Thanks..... More

Print this item

  Stuck on multiproccessing
Posted by: Gilush - Jun-02-2020, 06:21 AM - Forum: Homework - Replies (2)

I have a code that takes the host address, asks for filename (to save on user's desktop) and asks if user's want to clear the file or append to it.
..... More

Print this item

  Need to add hours min and seconds
Posted by: tester_V - Jun-02-2020, 01:00 AM - Forum: General Coding Help - Replies (5)

Hi,
I have a problem adding HHMMSS.
Have a file, it goes like this:

5/1/2020 2:40:31 PM, 5/1/2020 2:43:11 PM, 00:02:40.5449136, PV0015EN,Ce..... More

Print this item

  How to create Custom Buttons for 3D Scatter plots in Plotly?
Posted by: yourboyjoe - Jun-01-2020, 10:58 PM - Forum: General Coding Help - No Replies

I am using plotly in Jupyter Notebook with Python to generate multiple 3D plots. All the data exists as points and thus is plotted with Scatter3d. Som..... More

Print this item

  ModuleNotFoundError: No module named 'PyQt5'
Posted by: matklt - Jun-01-2020, 10:14 PM - Forum: GUI - Replies (2)

I have installed PyQt5 and PyQt5-tools using command prompt and pip install PyQt5 then pip install PyQt5-tools everything installed fine
I then pu..... More

Print this item

  How to pass multiple values from one sample to nc variable?
Posted by: Baloch - Jun-01-2020, 09:22 PM - Forum: General Coding Help - No Replies

I am using the following script to write the date and the snow cover values from each of the 258 files into a single NetCDF file. But python is not le..... More

Print this item

  Has anyone figured out how to get pywin32 into a virtual environment yet?
Posted by: RobR - Jun-01-2020, 08:24 PM - Forum: General Coding Help - Replies (6)

People have been trying for years to get pywin32 to work inside a virtual environment, and it seems nobody has succeeded yet. At least, all the unans..... More

Print this item

  rename files in a folder
Posted by: deep_logic - Jun-01-2020, 08:09 PM - Forum: General Coding Help - Replies (2)

Hi all,
I'm trying to rename about 25 files in a directory. If I have a directory that has a bunch of .jpg's that have the start out, "scanXXX", I'd ..... More

Print this item

  expotential functions and optimization
Posted by: Anonymushacker8 - Jun-01-2020, 07:34 PM - Forum: Data Science - No Replies

Hey guys,
I have a problem with expotentially rising weighting of allocations. I have a given:
total number of assets --> total
maximum allocation(..... More

Print this item

  [Solved]TypeError: list indices must be integers or slices, not str
Posted by: NectDz - Jun-01-2020, 06:36 PM - Forum: General Coding Help - Replies (3)

I am having a problem with my try and except in python, so basically everytime a person types a letter the whole program will crash and I can not find..... More

Print this item

  Exporting data from python into excel
Posted by: Zankawah - Jun-01-2020, 05:34 PM - Forum: General Coding Help - Replies (5)

Dear Sir,
I have interpolated data in python and I want to export the data into excel. The code for the interpolation is pasted below.
The output ha..... More

Print this item

  My version of Rock Paper Scissors
Posted by: menator01 - Jun-01-2020, 05:22 PM - Forum: Code sharing - Replies (12)

Tried my luck with rock paper scissors game from one of the post.
It contains terminal/console colors and may not show colors on windows systems.
As..... More

Print this item

  Creating ELearning with Python
Posted by: Mallette - Jun-01-2020, 04:55 PM - Forum: News and Discussions - Replies (1)

Even after making my search terms VERY specific I'be been unable to find any elearning module examples developed in Python. While I've seen references..... More

Print this item

  I'm getting an AttributeError. Don't know how to go arround it.
Posted by: 765F - Jun-01-2020, 04:44 PM - Forum: General Coding Help - Replies (5)

About the program.
I want the program to output all the possible results in a list. But I'm currently struggling removing the current quotes,..... More

Print this item

  Code modification
Posted by: ghaieth_benhamoud - Jun-01-2020, 02:53 PM - Forum: Data Science - Replies (14)

Hello to all,

I have this open source code where I want to add a loglogistic distribution to the ones that already exist. Can anyone help me?

[u..... More

Print this item

  Linear Programming (PuLP) - loop for constraints
Posted by: littleangel83 - Jun-01-2020, 02:25 PM - Forum: General Coding Help - Replies (1)

Hi,

I am new to Python and am trying to get it to solve an optimisation problem. I know how to use Excel to do this, but my problem is too big (too..... More

Print this item

  Difference of two columns in Pandas dataframe
Posted by: zinho - Jun-01-2020, 01:11 PM - Forum: Data Science - Replies (2)

Hi I tring to get two columns from Excel and parse to a DataFrame, after I need subtract this columns.

[python]
ndf = xw.Range('AI1:AJ..... More

Print this item

  Need help with rpsls game(Beginner corner)
Posted by: Bulxy88 - Jun-01-2020, 12:51 PM - Forum: General Coding Help - Replies (1)

Hi,I tried to write the codes without an instruction so I've made lots of mistakes, but I would be thankful to get reviewed and find my mistakes.

..... More

Print this item

  Python beginner - nested while loops
Posted by: mikebarden - Jun-01-2020, 12:42 PM - Forum: General Coding Help - Replies (1)

I have this code


[python]#import the graphical interface
from tkinter import *
#creat root widget
x1 = 10
y1 = 10
x2 = 20
y2 = 20
root = T..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Select Python comment (#)... 1 hour ago SpongeB0B tester_V General Codin...
  Comparing 2 100GB Drives/... 1 hour ago tester_V tester_V General Codin...
  looking for help 2 hours ago Azdaghost PhamMaria Bar
  My goal to be hired worki... Yesterday, 23:58 GnomeSweetGnome Larz60+ News and Disc...
  what does % stand for in ... Yesterday, 18:49 arbiel Gribouillis General Codin...
  My First App Yesterday, 10:53 BCopeland64 carlbidwell Code Review
  Unable to resolve FileNot... Yesterday, 03:54 llarkin6 Pedroski55 General Codin...
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
Most views
  The best Prog... 577256
  Tutorial Requ... 500311
  Web Scraping ... 440942
  Newbie with P... 384958
  New Users Int... 369284
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 8176
snippsat 7368
deanhystad 6896
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
seomelbourneaustralia Today
Jacobjoift Today
PhamMaria Today
zalexstolzeoz5360 Today
Edzed4431 Yesterday

User Panel Messages

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