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,974
» Latest member: Williamcaurb
» Forum threads: 38,732
» Forum posts: 175,557

Full Statistics

Online Users
There are currently 40 online users.
» 0 Member(s) | 29 Guest(s)
Google, Bing, Mojeek, AOL, Applebot, AOL, Facebook

Latest Threads
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
6 hours ago
» Replies: 6
» Views: 724
Integer Factorization Too...
Forum: Code sharing
Last Post: fosuwxb
7 hours ago
» Replies: 0
» Views: 52
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
10 hours ago
» Replies: 8
» Views: 453
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Yesterday, 06:39 PM
» Replies: 7
» Views: 2,831
My goal to be hired worki...
Forum: News and Discussions
Last Post: Larz60+
Sep-27-2025, 11:58 PM
» Replies: 1
» Views: 697
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,230
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,800
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,202
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,160
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,463

 
  A trouble with requests
Posted by: Truman - Feb-25-2019, 11:54 PM - Forum: General Coding Help - Replies (5)

[python]# The following will return a list of 2-grams found in the Wikipedia article on the Python programming language:

import requests
from bs4 imp..... More

Print this item

  Help with passing command line input to HTTP POST json
Posted by: sf05wrx - Feb-25-2019, 10:25 PM - Forum: General Coding Help - Replies (2)

I'm trying to do a HTTP POST request in which I take in input from the user for the json. However, when I use the input from the user my POST doesn't..... More

Print this item

  Help with lists
Posted by: Blaedel - Feb-25-2019, 09:13 PM - Forum: Homework - Replies (5)

Dear friends,

I simply can't get my head around this little problem. I need to randomly choose three words out of a list of words. The chosen word ..... More

Print this item

  webpage input module
Posted by: rudolphyaber - Feb-25-2019, 07:59 PM - Forum: Web Scraping & Web Development - Replies (2)

I need a small text based python program to open a website and allow the user to login by entering their username, password (and answer the security q..... More

Print this item

  Tetris - AttributeError: 'list' object has no attribute 'y'
Posted by: abscorpy - Feb-25-2019, 07:26 PM - Forum: Game Development - Replies (6)

Hi, im making a Tetris game



and I got stucked

the error showing on screen is the following:

[error]Traceback (most recent call last):
..... More

Print this item

  Would like to redirect vscode debugger watch to file
Posted by: Larz60+ - Feb-25-2019, 06:32 PM - Forum: Bar - No Replies

I've been searching for a way to redirect just the VSCode debugger watch window text to a file, but so far, haven't found a way to do this.
If I coul..... More

Print this item

  Hangman code problem
Posted by: KrakowKid - Feb-25-2019, 06:05 PM - Forum: General Coding Help - Replies (1)

Hey i got a few problems with my code, when i start it everything works but when i answer the right letter the program just stops. Im jusing python 3...... More

Print this item

  No module named flask_themes
Posted by: voipsense - Feb-25-2019, 04:37 PM - Forum: Web Scraping & Web Development - Replies (4)

Centos 7 ,python 2.7

# pip install flask-themes
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your P..... More

Print this item

  webpy app going in circles
Posted by: kintarowonders - Feb-25-2019, 03:16 PM - Forum: Web Scraping & Web Development - Replies (6)

I am working on a web.py app which makes it so a captcha has to be given to see a page. I found some ..... More

Print this item

  Selenium how to detect if browser is close?
Posted by: gahhon - Feb-25-2019, 02:13 PM - Forum: Web Scraping & Web Development - Replies (2)

CommonChrome.py
[python]
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.commo..... More

Print this item

  A list of lists
Posted by: Hassediagram - Feb-25-2019, 01:38 PM - Forum: General Coding Help - Replies (7)

Dear members of python-forum,

I encounter a problem of list definition (i think). I would like to define def(S,T), where:
(i) S and T are two sets..... More

Print this item

  Reading json behind a login page
Posted by: ebolisa - Feb-25-2019, 12:47 PM - Forum: General Coding Help - Replies (3)

Hi,

I'm trying to read json data from a file which is located in a protectd directory.
I can get to the data without a problem using php code so,..... More

Print this item

  new python package test
Posted by: ramkrishna - Feb-25-2019, 12:18 PM - Forum: General Coding Help - No Replies

I am writing a bioinformatics tool for filtering and comparing SNPs (aligned to same reference) from two or more VCF input files. Anyone is welcome to..... More

Print this item

  Trouble in lists
Posted by: erfanakbari1 - Feb-25-2019, 11:17 AM - Forum: Homework - Replies (2)

Hey guys , I'm a beginner at Python & I have taken a python course in which i am given some exercises to solve . unfortunately working with strings an..... More

Print this item

  Count to movement according to the time pressed button
Posted by: noartist - Feb-25-2019, 10:38 AM - Forum: General Coding Help - Replies (1)

Hello,

I need to develop a project with the codes I share with you.The details of the project are as follows.Could you help me about this issue?

but..... More

Print this item

  Image Stacking Help
Posted by: Rhys_SSD - Feb-25-2019, 09:57 AM - Forum: General Coding Help - Replies (2)

Good Morning,

I'm new Python so please bear with me.
I am using the np.vstack funtion from numpy to vertically stack some images on a raspberry pi..... More

Print this item

  Populating a Listbox from db Query
Posted by: DT2000 - Feb-25-2019, 09:47 AM - Forum: GUI - Replies (2)

Good morning, can someone point me to literature or offer advice to help me in my current issue.
I am trying to insert the data queried from my datab..... More

Print this item

  setting environment in arcpy
Posted by: sunny - Feb-25-2019, 09:31 AM - Forum: General Coding Help - Replies (1)

In arcpy module, when I set the workspace it seems it doesn't work properly and I get a runtime error as below.

import arcpy
#set the path of the ..... More

Print this item

  Searching for digits followed by a string.
Posted by: Zen_Panda - Feb-25-2019, 08:00 AM - Forum: General Coding Help - Replies (1)

Hello.

Given an input like "1234abd-alknfsdan-asjkldn-asd" I want to be able to see if there are 4 digits at the start followed by a specific subst..... More

Print this item

  using a list as a stack
Posted by: Skaperen - Feb-25-2019, 06:28 AM - Forum: General Coding Help - Replies (6)

i am thinking about a list to be a stack where i keep a most recently used index. when an index is used or created it gets put on one end. once the ..... More

Print this item

  Flask Error-Could not build url for endpoint 'index'. Did you forget to specify value
Posted by: Prince_Bhatia - Feb-25-2019, 05:52 AM - Forum: Web Scraping & Web Development - No Replies

Hi ,

I have written an flask app.

This app allow users to upload images, if i run this app locally this app uploads images and saves it to the ..... More

Print this item

  New here and I need help
Posted by: leplascencia - Feb-25-2019, 04:12 AM - Forum: Homework - Replies (3)

I need help with this code I can't get it to work
[python]
# Read the input file.. and store in tuples
with open("ALE.txt","r") as ins:

# li..... More

Print this item

  Indentation error in Python code
Posted by: ErnestTBass - Feb-25-2019, 03:30 AM - Forum: General Coding Help - Replies (5)

[code]
import numpy as np

#Input array
X=np.array([[1,0,1,0],[1,0,1,1],[0,1,0,1]])

#Output
y=np.array([[1],[1],[0]])

#Sigmoid Function
de..... More

Print this item

  Arduino / Python Environment Setup - PIP
Posted by: stevealbright - Feb-24-2019, 10:48 PM - Forum: General Coding Help - No Replies

I am trying to set up my Python environment on an Arduino Yun Rev 2. Need to install Pip to work on my project.

running this command causes the..... More

Print this item

  python_Basic_variable_function
Posted by: nomanahmedna - Feb-24-2019, 08:42 PM - Forum: General Coding Help - Replies (2)

[font=Comic Sans MS, cursive]
please explain to me following command lines. we created variable name1,then we def function bmi_calculator in that fun..... More

Print this item

  setting environment in arcpy
Posted by: sunny - Feb-24-2019, 08:37 PM - Forum: Data Science - No Replies

In arcpy module, when I set the workspace it seems it doesn't work properly and I get a runtime error as below.

import arcpy
#set the path of the..... More

Print this item

  found “Node_3” and X1=10 Y1=100, how to copyX1Y1+findNext “Node_3” pasteX2Y2
Posted by: HardQuestions - Feb-24-2019, 08:04 PM - Forum: General Coding Help - Replies (4)

Hi there this is how it looks like BEFORE and AFTER, for the problem am trying to solve using Python. I have been trying for weeks. And ..... More

Print this item

  Help to flatten list of nested dictionaries
Posted by: shawbapmp - Feb-24-2019, 06:34 PM - Forum: General Coding Help - Replies (4)

Hi Py Developers,
I'm a Python 3 newbie with problems trying to flatten a list of nested dictionaries. It is Oanda API candle data that looks like t..... More

Print this item

  TypeError("index() missing 1 required positional argument: 'pymydb'"
Posted by: nikos - Feb-24-2019, 06:34 PM - Forum: Web Scraping & Web Development - Replies (2)

[python]# dbhost is optional, default is localhost
plugin = bottle_pymysql.Plugin( dbuser='nikos', dbpass='*******', dbname='counters', charset = 'ut..... More

Print this item

  trying to install oandapy and failing
Posted by: ErnestTBass - Feb-24-2019, 06:13 PM - Forum: General Coding Help - No Replies

I am trying to install oandapy

It is refusing to install and I am getting the following error.

[output]
james@james-VirtualBox:~/Desktop$ pip3 ..... More

Print this item

  How to format a datetime MySQL database field to local using strftime()
Posted by: nikos - Feb-24-2019, 03:55 PM - Forum: Web Scraping & Web Development - Replies (6)

I decided to move from 'pymysql' to 'bottle-pymysql' plugin. i have this code:

[python]
# dbhost is optional, default is localhost
plugin = bottl..... More

Print this item

  Learning the logic of programming?
Posted by: randomguy - Feb-24-2019, 03:43 PM - Forum: News and Discussions - Replies (2)

Hello.

I decided to give programming a whirl. Python is the most recommended one and one that suits my purposes the best.

Anyways, I've tried le..... More

Print this item

  modify the color a string of characters in python 3.6
Posted by: atlass218 - Feb-24-2019, 12:10 PM - Forum: General Coding Help - Replies (10)

hello;
I look for a method python associated to objects that type is str; like the methods : upper(), lower() ...
which can help me to change the col..... More

Print this item

  function parameter function
Posted by: bendarodes - Feb-24-2019, 11:52 AM - Forum: Data Science - No Replies

Hi i am new in python. i want to a function with a paremeter which is also function. My code is over there.
[python]import pandas as pd
veri=pd.read..... More

Print this item

  Please help a newbie choose which programming language to learn.
Posted by: yeto - Feb-24-2019, 11:28 AM - Forum: General Coding Help - Replies (2)

Hi,

I would like to learn a programming language. I have searched on the internet and it seems like Python is one of the best. I would like to writ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Unable to resolve FileNot... 6 hours ago llarkin6 noisefloor General Codin...
  Integer Factorization Too... 7 hours ago fosuwxb fosuwxb Code sharing
  Comparing 2 100GB Drives/... 10 hours ago tester_V snippsat General Codin...
  Select Python comment (#)... Yesterday, 18:39 SpongeB0B tester_V General Codin...
  My goal to be hired worki... 09-27, 23:58 GnomeSweetGnome Larz60+ News and Disc...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [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... 577307
  Tutorial Requ... 500550
  Web Scraping ... 440979
  Newbie with P... 385013
  New Users Int... 369471
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+ 12090
buran 8176
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Williamcaurb Today
sophielane Today
Oscar0057 Today
Cromulent Today
PhamMaria Today

User Panel Messages

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