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,305
» Latest member: rajatkumar
» Forum threads: 38,799
» Forum posts: 175,904

Full Statistics

Online Users
There are currently 49 online users.
» 1 Member(s) | 41 Guest(s)
Bing, Google, Mojeek, Facebook Dev

Latest Threads
How Aviator Game is Devel...
Forum: General Coding Help
Last Post: rajatkumar
1 hour ago
» Replies: 0
» Views: 12
Python is not working on ...
Forum: General Coding Help
Last Post: lary_p
4 hours ago
» Replies: 3
» Views: 113
No new line from print in...
Forum: General Coding Help
Last Post: bowlofred
5 hours ago
» Replies: 2
» Views: 42
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
5 hours ago
» Replies: 8
» Views: 650
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Yesterday, 04:48 AM
» Replies: 6
» Views: 7,806
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 131
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 113
My regex function is not ...
Forum: General Coding Help
Last Post: perfringo
Nov-26-2025, 08:47 AM
» Replies: 3
» Views: 200
best way to learn python
Forum: News and Discussions
Last Post: ichsanputr
Nov-26-2025, 04:40 AM
» Replies: 6
» Views: 3,211
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Nov-25-2025, 02:50 AM
» Replies: 6
» Views: 312

 
  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

  for Variable Not Expiring
Posted by: trevorkavanaugh - Feb-24-2019, 05:53 AM - Forum: General Coding Help - Replies (10)

Hello,

I am new to python and just realized that when I create a for loop to iterate through a list, I am still able to access the variable that was ..... More

Print this item

  Better Tree Height Function
Posted by: Clunk_Head - Feb-24-2019, 03:12 AM - Forum: General Coding Help - Replies (2)

[python]
class Node:
def __init__(self, data):
self.data = data
self.left = None
self.right = None

def height(..... More

Print this item

  web.py: implementing a captcha
Posted by: kintarowonders - Feb-24-2019, 02:39 AM - Forum: Web Scraping & Web Development - No Replies

I am trying to make it so users have to enter a captcha to enter a site. I am new to webpy, and I've got this code and I don't even know why it doesn'..... More

Print this item

  Write list of list to CSV?
Posted by: searching1 - Feb-24-2019, 01:13 AM - Forum: General Coding Help - Replies (16)

Hi, I would like to ask on how we can write these set of list which has list in it?

Target output on csv is like this(attached).
[img]https://imgu..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How Aviator Game is Devel... 1 hour ago rajatkumar rajatkumar General Codin...
  Python is not working on ... 4 hours ago lary_p lary_p General Codin...
  No new line from print in... 5 hours ago Lou bowlofred General Codin...
  Help with Serial.write in... 5 hours ago racingsubby Larz60+ General Codin...
  Can I develop a live vide... Yesterday, 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...
  best way to learn python 11-26, 04:40 dutch ichsanputr News and Disc...
  data fetching for indian ... 11-25, 02:50 drakhsin Pedroski55 Web Scraping ...
  PyQt5 - Get a parameter f... 11-24, 14:18 Ninja2112 deanhystad GUI
Most views
  The best Prog... 579437
  Tutorial Requ... 512548
  Web Scraping ... 442316
  Newbie with P... 386368
  New Users Int... 380612
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 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
rajatkumar Today
IFDA123 Today
TimTom420 Yesterday
cruisesfares Yesterday
SNR Yesterday

User Panel Messages

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