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,308
» Latest member: NeoQuant
» Forum threads: 38,801
» Forum posts: 175,919

Full Statistics

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

Latest Threads
Python compiler
Forum: General Coding Help
Last Post: NeoQuant
5 hours ago
» Replies: 0
» Views: 24
Trading Risk management s...
Forum: Code sharing
Last Post: NeoQuant
5 hours ago
» Replies: 5
» Views: 59
Standard template Data En...
Forum: Code Review
Last Post: Hosthubac
7 hours ago
» Replies: 0
» Views: 32
No new line from print in...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 12:37 PM
» Replies: 8
» Views: 235
Python Online Compiler
Forum: News and Discussions
Last Post: ichsanputr
Yesterday, 07:39 AM
» Replies: 3
» Views: 11,107
Python is not working on ...
Forum: General Coding Help
Last Post: noisefloor
Nov-28-2025, 10:44 AM
» Replies: 4
» Views: 191
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-28-2025, 04:44 AM
» Replies: 8
» Views: 714
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Nov-27-2025, 04:48 AM
» Replies: 6
» Views: 7,832
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 181
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 154

 
  in openpyxl, how to set the font to 'centred'?
Posted by: Pedroski55 - Sep-16-2018, 05:15 AM - Forum: General Coding Help - Replies (3)

I have the following code to set the font in my excel table using openpyxl:

[python]ft1 = Font(name='Arial', size=20)

for sheet in targetFileShe..... More

Print this item

  Kirill_Dubovitskiy has dark perception of the world, but (s)he should not be banned
Posted by: pcsailor - Sep-16-2018, 02:57 AM - Forum: Board - Replies (10)

Kirill_Dubovitskiy has dark perception of the world, but (s)he should not be banned.

They're even a bit of an a**hole and pessimistic about everyth..... More

Print this item

  Code Help!!
Posted by: Garyeck - Sep-16-2018, 12:54 AM - Forum: General Coding Help - Replies (1)

Hi, my son is in year 7 and hit a bit of a problem with is coding project and hoping someone out there in code land can help! It's a simple snakes and..... More

Print this item

  How can I link these 6 routines to run sequentially?
Posted by: Pedroski55 - Sep-15-2018, 11:18 PM - Forum: General Coding Help - Replies (2)

Every week I have to insert scores for 7 classes, so I am trying to automate this as much as possible.

I now have 6 routines which all work in my i..... More

Print this item

  Request for input on a talk I was asked to give
Posted by: Phoenix_ZA - Sep-15-2018, 11:09 PM - Forum: News and Discussions - Replies (4)

So I was asked to give a 45-minute talk for next week Wednesday, at a general open source meetup 'like' event in my local city, as they heard that I w..... More

Print this item

  Is this a good way to become a Programmer? Urgent advice needed plz!
Posted by: MoTechie - Sep-15-2018, 10:26 PM - Forum: News and Discussions - Replies (1)

Hi, I've been doing research on a career in coding/programming and now I'm very interested and motivated to learn it. I'm a complete beginner and limi..... More

Print this item

  VSCode issue
Posted by: Larz60+ - Sep-15-2018, 09:28 PM - Forum: General Coding Help - Replies (7)

I made a mistake and clicked a button to load Microsoft Python language server. I don't want this, but don't know where it resides or how to remove it..... More

Print this item

  Making a number list in a .txt file
Posted by: kwak86 - Sep-15-2018, 08:59 PM - Forum: General Coding Help - Replies (13)

Hello,

I would like making a list of number in a file I can read with notepad.

I try this:

[python]

f=open("dico.txt","w")
a=0
while a<=999999:
i..... More

Print this item

  Need help
Posted by: ZoroSama420 - Sep-15-2018, 08:44 PM - Forum: Homework - Replies (1)

Hello guys , I am super new to scripting and i have got this homework assignment at school and i have no idea what it means , if someone can help me o..... More

Print this item

  Python Scraping Error
Posted by: ZenWoR - Sep-15-2018, 07:47 PM - Forum: Web Scraping & Web Development - Replies (1)

I wanted to get .text of <a>, but it simply doesn't work.

Here is my code:
[python]
from bs4 import BeautifulSoup
import requests

generatedLi..... More

Print this item

  reading the binary contents of any file
Posted by: qrani - Sep-15-2018, 07:18 PM - Forum: General Coding Help - Replies (4)

I was wondering how to make it so I can load the binary of any file
so say I have a file called,
file1.qra
(qra is made up)
and the binary content..... More

Print this item

  Using user input to restart and quit a game.
Posted by: Maximuskiller78 - Sep-15-2018, 05:07 PM - Forum: Homework - Replies (4)

Hi, I can't figure out how to use user input, to restart and quit the game.


[python] import random

guessesTaken = 0


print('Hel..... More

Print this item

  [Help] Beginner's code
Posted by: Owenix - Sep-15-2018, 04:47 PM - Forum: General Coding Help - Replies (3)

Hey there, started learning today and i'm currently trying to make an '8 ball' from a challenge online.
I'm trying to make it so when the player says..... More

Print this item

  Trying to write a code to get a long list of unknown URLs
Posted by: hkynefin - Sep-15-2018, 04:27 PM - Forum: Web Scraping & Web Development - Replies (2)

I am using the Princeton Review Top 384 Colleges as a source in a research project. Ultimately, what I want to do is create a code that will go to the..... More

Print this item

  Joystick Input
Posted by: microphone_head - Sep-15-2018, 04:14 PM - Forum: Game Development - Replies (2)

Hi there. I think I'm having trouble with clearing the joystick buffer. Can anyone help?

The project I'm working on allows the user to navigate a..... More

Print this item

  'Looping' does not work out within a 'for Loop'
Posted by: Placebo - Sep-15-2018, 04:07 PM - Forum: General Coding Help - Replies (4)

Hi^^

I just cannot find my mistake regards to an ecercise I have made.
Before asking my questions, I just include here my Code and the output:

..... More

Print this item

  Looking for Selenium setup help
Posted by: ubotbuddy - Sep-15-2018, 03:28 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello everyone!

I'm a new member to the forum but an old dog in the botting universe.

Doing some deep diving with Python and I am now playing ar..... More

Print this item

  Configuring interpretor in PyCharm: [Errno 2] No such file or directory
Posted by: BoaCoder3 - Sep-15-2018, 01:21 PM - Forum: General Coding Help - No Replies

I created a new virtual environment for my project in python3.6.4 so can start using that instead of the previous version python3.5. However, today I ..... More

Print this item

  Python 3 escape codes
Posted by: oldDog - Sep-15-2018, 10:07 AM - Forum: General Coding Help - Replies (1)

I know how to write a newline "\n" and that's about all. I would like to know more. Because i came across the following "\n\t\t" and to be honest i'm ..... More

Print this item

  how to check for file type in a folder
Posted by: SoulsKeeper - Sep-15-2018, 08:47 AM - Forum: General Coding Help - Replies (4)

Hello, I want the script to go through the entire folder and only list the files which are neither Zip or Rar files

but when I use this code, it ju..... More

Print this item

  How to upload images after first paragraph ends instead of uploading them at the end?
Posted by: SamLearnsPython - Sep-15-2018, 06:53 AM - Forum: Web Scraping & Web Development - No Replies

In the below script, how do I upload images after the first paragraph ends instead of uploading it right at the very end.

I want the layout as

parag..... More

Print this item

  Unable to use sqlanydb to execute Sybase IQ Stored Procedure
Posted by: FORTITUDE - Sep-15-2018, 05:58 AM - Forum: General Coding Help - Replies (4)

Hi All,

I am using library sqlanydb to access Sybase IQ database.

It was running fine until it hits some statement that will insert into a temp ..... More

Print this item

  tarfile but not to a file
Posted by: Skaperen - Sep-15-2018, 05:15 AM - Forum: General Coding Help - Replies (2)

i am designing a program that will send tarballs to AWS S3. this means the data in tar format needs to be buffered and instead of writing to disk, wi..... More

Print this item

  Staying motivated? Share your story.
Posted by: Ceegen - Sep-14-2018, 11:45 PM - Forum: Web Scraping & Web Development - Replies (10)

Hello everyone.

I've been learning to program in Python on my own. Reading the docs, watching videos and doing a few projects. So far I've made a s..... More

Print this item

  Is there a way to append to a list WITHOUT modifying the parameter passed?
Posted by: arnavb - Sep-14-2018, 11:09 PM - Forum: General Coding Help - Replies (11)

Let's say I have this code:

def test(some_args):
    some_args += ['two']

args = ['one']
test(args)
print(args)
When I run this ..... More

Print this item

  Can't show PyQt5 mediaPlayer in window
Posted by: DecaK - Sep-14-2018, 09:51 PM - Forum: GUI - Replies (1)

I'm trying to add mediaPlayer to my window for few days but I just can't show it. Qt Designer don't have a option for adding mediaPlayer and I can't a..... More

Print this item

  Help with python3 (BeautifulSoup)
Posted by: freaknez - Sep-14-2018, 09:12 PM - Forum: Web Scraping & Web Development - Replies (1)

[python]
import requests
from termcolor import *
import colorama
from bs4 import BeautifulSoup
colorama.init()
headers = {
"Cookie": "PHPSESSI..... More

Print this item

  IDLE not importing pygame (ok outside of IDLE)
Posted by: miner_tom - Sep-14-2018, 06:56 PM - Forum: General Coding Help - Replies (1)

I do have pygame installed on my ubuntu 16.04 system. I know this because when I run the program outside of IDLE (or IDLE3) I get
the following from ..... More

Print this item

  Bill calculator with different prices
Posted by: JHPythonLearner - Sep-14-2018, 06:39 PM - Forum: General Coding Help - Replies (10)

Hello.

I'm trying to write a program that calculates the total price of photocopies made at a photocpy business.
Prices are as follows:
The firs..... More

Print this item

  Pyenv build of python 3.7.0 issue
Posted by: Larz60+ - Sep-14-2018, 04:32 PM - Forum: General Coding Help - Replies (3)

I had to reinstall 'openSuse Leap 15' because of a virus that I couldn't crush.
So, I'm faced with rebuilding my tool set.
I have reinstalled pyenv,..... More

Print this item

  Creating a delimited file from DB Table
Posted by: anubhav2020 - Sep-14-2018, 02:53 PM - Forum: General Coding Help - Replies (9)

Hi there,

I am new to python (SAS background).
I have this requirement to create a PIPE delimited file from Netezza tables. I tried the following..... More

Print this item

  Help With Error Handling
Posted by: jo15765 - Sep-14-2018, 02:44 PM - Forum: General Coding Help - Replies (6)

Hello - I am new to python and am attempting to validate that the user input is a number with my script. I have the below syntax, but instead of act..... More

Print this item

  Divide a number by numbers in a list.
Posted by: Wallen - Sep-14-2018, 01:46 PM - Forum: General Coding Help - Replies (7)

Hello. Im trying to get the sum of all prime numbers under 2,000,000. In my code Ive tried to divide a number with only prime numbers in order to lowe..... More

Print this item

  Learning Python, motivation problem
Posted by: tarmiricmi - Sep-14-2018, 12:10 PM - Forum: Bar - Replies (1)

Hello fellow Pythoners,
I'm newbie at programming and I have decided to try myself with Python.
I bought a couple of books, bookmarked some tutorial..... More

Print this item

  Embedding, windows, and virtual environments
Posted by: mariofutire - Sep-14-2018, 10:30 AM - Forum: General Coding Help - No Replies

Hi,

I've been writing a C++ app which embeds the python interpreter (tested on 3.6 or 3.7).
I am writing it both for linux and windows.

I would..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Python compiler 5 hours ago NeoQuant NeoQuant General Codin...
  Trading Risk management s... 5 hours ago NeoQuant NeoQuant Code sharing
  Standard template Data En... 7 hours ago Hosthubac Hosthubac Code Review
  No new line from print in... Yesterday, 12:37 Lou snippsat General Codin...
  Python Online Compiler Yesterday, 07:39 alexmaxwell1 ichsanputr News and Disc...
  Python is not working on ... 11-28, 10:44 lary_p noisefloor General Codin...
  Help with Serial.write in... 11-28, 04:44 racingsubby Larz60+ General Codin...
  Can I develop a live vide... 11-27, 04:48 mtrkhan mamta25 Web Scraping ...
  silent deployment Python ... 11-26, 21:58 Bummibaer Larz60+ News and Disc...
  Proposal for PEP 11-26, 15:53 matt Gribouillis News and Disc...
  My regex function is not ... 11-26, 08:47 Moltar1997 perfringo General Codin...
Most views
  The best Prog... 579495
  Tutorial Requ... 512828
  Web Scraping ... 442365
  Newbie with P... 386395
  New Users Int... 381716
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+ 12113
buran 8196
snippsat 7393
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
NeoQuant Yesterday
Hosthubac Yesterday
ifdainstitute7 Yesterday
MOHAMMAD_mk Yesterday
virvainfotech Yesterday

User Panel Messages

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