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,940
» Latest member: Littlefish
» Forum threads: 38,723
» Forum posts: 175,516

Full Statistics

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

Latest Threads
A coding beginner needs h...
Forum: General Coding Help
Last Post: paul18fr
4 hours ago
» Replies: 1
» Views: 156
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
8 hours ago
» Replies: 8
» Views: 315
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,500
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 898
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,244
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,772
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,568
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,670
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,856
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 1,411

 
  ValueError: The truth value of an array with more than one element is ambiguous.
Posted by: Eliza5 - Mar-31-2018, 09:56 AM - Forum: Data Science - Replies (1)

I am working on a simple code, for calculating Re number. The problem is that I want to check every number in Re vector, although I do not know how to..... More

Print this item

  how to get all lines and text from a webpage
Posted by: pratheep - Mar-31-2018, 06:35 AM - Forum: Web Scraping & Web Development - Replies (2)

I am pratheep..
I am working on a project..
I have afault in my code..

THIS IS MY CODE:
[python]import requests
from bs4 import BeautifulSoup
..... More

Print this item

  How to: Plot a 2D histogram from N-dim array?
Posted by: StevenZ - Mar-31-2018, 03:31 AM - Forum: General Coding Help - Replies (1)

Hello everyone!

So I have been searching for some time to an answer. What I want to do is: Make 2 histograms, Divide them->Plot the result.

For..... More

Print this item

  What's wrong?
Posted by: Dragon7585 - Mar-31-2018, 03:01 AM - Forum: General Coding Help - Replies (1)

def multiply(a, b):
a * b
Angry Doh Angry Doh Angry Doh Angry Doh Angry Doh


what's wrong?
[..... More

Print this item

  which is "better"?
Posted by: Skaperen - Mar-31-2018, 12:34 AM - Forum: General Coding Help - Replies (8)

i wrote a function two different ways. can someone tell me which is better and why?

[python]def pathftn(p,unknown='?'):
if p.is_symlink: ..... More

Print this item

  tic tac toe indentation help
Posted by: ilaytertman1 - Mar-30-2018, 09:32 PM - Forum: General Coding Help - Replies (9)

i crated a simple tic tac toe game in python and it keeps telling me i have an indentation problem i will appreciate if someone would be able to help ..... More

Print this item

  Naive Bayes probabilities very small
Posted by: angelwings - Mar-30-2018, 08:12 PM - Forum: General Coding Help - No Replies

Hi,

I have been trying to code a Naive Bayes from scratch.
I had a number of sentences in my training set
ex: I love running - Joy, Fun
I h..... More

Print this item

  Problem with __main__
Posted by: sylas - Mar-30-2018, 07:02 PM - Forum: General Coding Help - Replies (2)

Hi all. I saw many times files using 'if __name__=='__main__':' even file is a standalone file.
It seemed to me I should use this 'if' only in case o..... More

Print this item

  PyInstaller
Posted by: jure98 - Mar-30-2018, 05:39 PM - Forum: General Coding Help - Replies (2)

Hi guys

I'm use Pyinstaller to convert my .py to .exe ,and all works.I just have an question. Which files I need to upload so that I can run it on ..... More

Print this item

  Keyboard bind
Posted by: Gaiiden - Mar-30-2018, 03:45 PM - Forum: Homework - Replies (2)

Hey everyone :D
So i need to make a little game for school and i have a problem but first i need to explain how this game will work :
So basically ..... More

Print this item

  Misterious invalid syntax
Posted by: Galedon - Mar-30-2018, 03:33 PM - Forum: Data Science - Replies (3)

Hello.

I need help with one of my scripts. It worked yesterday, but today (with no chenge at all!) it suddenly stopped working. The mistake is "inva..... More

Print this item

  Error message with PIL putpixel
Posted by: louloudevinci - Mar-30-2018, 03:23 PM - Forum: Networking - Replies (7)

Hey ! I want to change all the pixels of an image with this loop but I have an error message : "'module' object has not attribute 'putpixel' and I don..... More

Print this item

  errors while installing packages
Posted by: kavindu - Mar-30-2018, 11:58 AM - Forum: General Coding Help - Replies (3)

Cry It always occur errors when i'm trying to install wheel or any other python package. What is the reason to always occur errors like this. how ..... More

Print this item

  tkinter freezes by clicking button
Posted by: Zatox11 - Mar-30-2018, 11:38 AM - Forum: GUI - Replies (33)

Hi,

I am new to Python and programming in general. What I want to do is build a kind of "sudoku-solver" which is capable of doing the following tas..... More

Print this item

  How to fix and of quote / end of statement
Posted by: codyGirl - Mar-30-2018, 11:16 AM - Forum: Web Scraping & Web Development - Replies (4)

Hi Smile ,

What code is missing from the script below ... Specific;
sample_df.to_csv (Desktop / "+ str (title_csv) +" .csv ",
..... More

Print this item

  How to find the list of dependencies not present in the remote artifactory repository
Posted by: csplrj - Mar-30-2018, 11:04 AM - Forum: General Coding Help - Replies (6)

How to find the list of dependencies not present in the remote artifactory repository?
I want to install a package twisted(https://pypi.python.org/py..... More

Print this item

  calculate the 10001st prime number
Posted by: topologh - Mar-30-2018, 10:59 AM - Forum: Homework - Replies (7)

I'm learning python by following project euler. Q7 asks you to calculate the 10001st prime.

i did the following (in pseudocode):

def div(n): mak..... More

Print this item

  Issues with Nickel Calculation
Posted by: CrashAndBurn2018 - Mar-30-2018, 10:04 AM - Forum: General Coding Help - Replies (3)

[python]#Change.PY
# A program to calculate the value of change

def main():
print("Change Counter")
print()
print("Enter count of e..... More

Print this item

  Newbie with Pi3
Posted by: Dualxeon - Mar-30-2018, 08:39 AM - Forum: General Coding Help - Replies (50)

I am working on opening a door with my Pi3, I have borrowed a lot of this code so far,as to I am very new to programming. I have this much working, no..... More

Print this item

  How to access Modal window using Selenium Python
Posted by: sumandas89 - Mar-30-2018, 08:21 AM - Forum: Web Scraping & Web Development - No Replies

While crawling in a web-page using python selenium, I found a link and after clicking in the link using selenium, I found a modal window appears. Now ..... More

Print this item

  When Erlang befriend Python and they work together to mutual advantage
Posted by: nsharma9 - Mar-30-2018, 06:02 AM - Forum: News and Discussions - No Replies

There is a lot more work that you could do by leveraging multiple programming languages together (mostly the libraries and tools available). Making it..... More

Print this item

  question about list and remove function
Posted by: wmw12344 - Mar-29-2018, 10:29 PM - Forum: General Coding Help - Replies (5)

hello,
I am a beginner in programming,started learning python a few days ago.When I was doing exercise,found a problem that I couldn't solve by mysel..... More

Print this item

  Creating user accounts in Google Directory
Posted by: amankahlon - Mar-29-2018, 10:25 PM - Forum: General Coding Help - Replies (1)

Hello,

I am trying to create the user accounts in the google directory using python. I am not sure what should be my starting point.

Thanks,
Am..... More

Print this item

  Question about telegram bot
Posted by: Romank - Mar-29-2018, 09:36 PM - Forum: General Coding Help - No Replies

Hello, im writing a telegram bot and i got a problem:
In the story there is a moment where user need to choose one of two options for further developm..... More

Print this item

  finding items/comparison in/with a dictionary
Posted by: AGC - Mar-29-2018, 09:11 PM - Forum: General Coding Help - Replies (17)

Hello,
I have file 1 with this kind of information: Name Definition for about 2,000 names --> I have created a dictionary with this file (name:defin..... More

Print this item

  Format tel hyperlink
Posted by: 3115Tech - Mar-29-2018, 08:24 PM - Forum: Code sharing - Replies (1)

Here is a simple code snippet to format a tel hyperlink. this will display just the phone number otherwise it just prints out the whole <a href..... More

Print this item

  Convert script from Perl to Python3
Posted by: gentoobob - Mar-29-2018, 06:13 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello! First off I'm not a strong Python developer. I'm a Network Engineer and I use Python to create automation scripts for accessing routers and sw..... More

Print this item

  Multi thread telnet issue
Posted by: anna - Mar-29-2018, 05:35 PM - Forum: General Coding Help - No Replies

Below script is working, however randomly few devices showing as time out, but those devices are reachable to able to telnet.

Thanks for our Modera..... More

Print this item

  Code review for S3 object creation
Posted by: beherap - Mar-29-2018, 01:31 PM - Forum: General Coding Help - No Replies

Hello!

I have developed a python3.6 program to create a csv object in S3 from a JSON payload. As this is my first python program, it would really h..... More

Print this item

  unable to convert text file in dictionary
Posted by: purnima1 - Mar-29-2018, 09:37 AM - Forum: General Coding Help - Replies (6)

Hi Team,
I am trying to convert one text file in dictionary but it remains empty . Please help .

text files sample records are as follows
CC_FIP..... More

Print this item

  RE: Making Python3 Default on Debian Stretch
Posted by: silver2row - Mar-29-2018, 08:54 AM - Forum: News and Discussions - Replies (4)

Hello,

I was trying to find info. on making my Debian Distro Python3 ready. I have Python3 installed on the machine but it is not my default Python..... More

Print this item

  Display 20 records at a time,data structure or loop
Posted by: pythonds - Mar-29-2018, 08:49 AM - Forum: General Coding Help - Replies (1)

I have this problem.I need to submit 20 words separated by a comma to a web service.The words i am getting them from mysql database. I am new to pytho..... More

Print this item

  Convert TXT to CSV
Posted by: jabberwock88 - Mar-29-2018, 08:14 AM - Forum: General Coding Help - Replies (1)

Hello,

I need help converting a text file, to a CSV that I could use in splunk.

This is my source file:

Image Digest: sha256:316ebb92ca66bb8d..... More

Print this item

  What tool do I need to look at a CSV file?
Posted by: RedSkeleton007 - Mar-29-2018, 05:51 AM - Forum: General Coding Help - Replies (5)

The following code successfully created a .csv file:
[python]
#!/usr/bin/env python3
#MoviesCSV.py

import csv

movieList = [["Monty Python and..... More


Attached Files

Thumbnail(s)
   
Print this item

  Matplotlib question
Posted by: notsolowki - Mar-29-2018, 05:37 AM - Forum: GUI - Replies (2)

where can i ask a question about matplotlib ive been asking everywhere and nothing but silence. i have written a program in it and it needs to be modi..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  A coding beginner needs h... 4 hours ago Littlefish paul18fr General Codin...
  Using a For Loop to subtr... 8 hours ago 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...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
Most views
  The best Prog... 576564
  Tutorial Requ... 498556
  Web Scraping ... 440432
  Newbie with P... 384336
  New Users Int... 367541
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+ 12087
buran 8175
snippsat 7368
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Littlefish Today
Noya_Yonatan Yesterday
Saipython555 Yesterday
Anunderling Yesterday
Monir Yesterday

User Panel Messages

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