Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,491
» Latest member: CoderMerv
» Forum threads: 37,264
» Forum posts: 169,376

Full Statistics

Online Users
There are currently 385 online users.
» 1 Member(s) | 379 Guest(s)
Bing, Google, Applebot, AOL, DPaul

Latest Threads
Variable not defined even...
Forum: General Coding Help
Last Post: CoderMerv
7 minutes ago
» Replies: 2
» Views: 36
Sorting Steps
Forum: General Coding Help
Last Post: MoreMoney
1 hour ago
» Replies: 11
» Views: 294
Numeric Enigma Machine
Forum: General Coding Help
Last Post: bowlofred
3 hours ago
» Replies: 5
» Views: 85
Elegant way to apply each...
Forum: General Coding Help
Last Post: deanhystad
5 hours ago
» Replies: 3
» Views: 114
m3u8 using build-in brows...
Forum: Web Scraping & Web Development
Last Post: kucingkembar
10 hours ago
» Replies: 0
» Views: 42
Not getting forum emails
Forum: Board
Last Post: snippsat
Yesterday, 06:51 PM
» Replies: 2
» Views: 85
argparse io issue
Forum: General Coding Help
Last Post: snippsat
Yesterday, 06:04 PM
» Replies: 1
» Views: 92
tkinter logo
Forum: Bar
Last Post: menator01
Yesterday, 03:05 PM
» Replies: 3
» Views: 84
Book
Forum: Bar
Last Post: Boobiwoobi
Yesterday, 03:00 PM
» Replies: 3
» Views: 856
How to parse and group hi...
Forum: General Coding Help
Last Post: ann23fr
Yesterday, 01:16 PM
» Replies: 0
» Views: 70

 
  weird error on my code
Posted by: JTNA - Apr-03-2019, 02:10 PM - Forum: Homework - Replies (1)

I made this code to add random numbers to an array and print the sums, all of that works except the code engine im using requires me to add "Total is:..... More

Print this item

  Help coding 3d software automation
Posted by: danishaikh - Apr-03-2019, 02:01 PM - Forum: General Coding Help - Replies (1)

I'm trying to alter code written by the software when recording a macro to refer to a general location so that I can use the macro to run for any new ..... More

Print this item

  How to correct the NameError: name 'xx' is not defined?
Posted by: vokoyo - Apr-03-2019, 01:54 PM - Forum: Homework - Replies (5)

May I know how to correct the NameError: name 'xx' is not defined ?
[python]
import numpy as np
import matplotlib.pyplot as plt
from sklear..... More

Print this item

  ReShapping error while using open cv in python
Posted by: barry76 - Apr-03-2019, 12:40 PM - Forum: General Coding Help - No Replies

Using mentioned below code I am trying to reshape the image and use it on a specific row and column parameters

[python]import cv2
import numpy as ..... More

Print this item

  while creating a array using numpy.arrange, how to negate only the last 50 numbers?
Posted by: vicky53 - Apr-03-2019, 12:18 PM - Forum: Data Science - Replies (1)

I'm creating an array using numpy and trying to negate the numbers from 50 to 100 in seperate steps as below..
\\

[python]

arr = np.arange(100)..... More

Print this item

  guessing the number game
Posted by: go127a - Apr-03-2019, 11:22 AM - Forum: General Coding Help - Replies (6)

I am going to write code in this condition:

I have a number in my mind and the code is going to find out, I have wrote it but it has a problem in w..... More

Print this item

  Question about security fixes
Posted by: sharonsinger - Apr-03-2019, 11:16 AM - Forum: News and Discussions - Replies (5)

I am trying to find out whether fixes have been issued yet for CVE-2019-9947 and CVE-2019-9948
I can see the bugs (https://bugs.python.org/issue35906..... More

Print this item

  Ideas for determine the volume of rotating object
Posted by: Lardos - Apr-03-2019, 11:03 AM - Forum: Bar - Replies (2)

Hello everybody,

I'm afraid I'm totally wrong with my question here, but I thought it might be worth a try...
I am currently working on an experim..... More

Print this item

  sending html file in email
Posted by: santoshi - Apr-03-2019, 10:32 AM - Forum: General Coding Help - Replies (3)

i am trying to email the report.html. email is coming successfully, but without any content.
Tried with standalone python script.

following is the..... More

Print this item

  How to call base class function
Posted by: kamal_chennai - Apr-03-2019, 10:09 AM - Forum: General Coding Help - Replies (1)

Hi Team,

Please find the below code

[python]

class A () :
    def __init__(self,name):
        self.name = name

    def fun(self):
        print("..... More

Print this item

  Value Estimator Calculator
Posted by: jaycuff13 - Apr-03-2019, 10:06 AM - Forum: General Coding Help - Replies (1)

Hello. I am working on value estimator in python. Towards the end of my script I am trying to create a rating systems based on the the total investmen..... More

Print this item

  dictionary and function
Posted by: renu6593 - Apr-03-2019, 09:54 AM - Forum: General Coding Help - Replies (2)

iteration through a dictionary and allocate those values to a function for further calculation

i use python 2.7

x={AB,AD,BD} #Dictio..... More

Print this item

  Why is from code import * different from entering that code directly into the REPL?
Posted by: sebi - Apr-03-2019, 07:01 AM - Forum: General Coding Help - Replies (5)

...indeed, for code.py being

a = 0
def func():
    global a
    a = 1
after entering that code directly into the REPL a..... More

Print this item

  counting the occurence of a specified number in a numpy-matrix
Posted by: PhysChem - Apr-03-2019, 06:27 AM - Forum: Data Science - Replies (1)

Hi!
There is a numpy-matrix with a couple column and about 100000 row. For now, only the last element of each row is important.
I wish to count, th..... More

Print this item

  Decoding log files in binary using an XML file.
Posted by: captainfantastic - Apr-03-2019, 05:42 AM - Forum: General Coding Help - Replies (1)

Good day.

I am attempting to create a new log decoder based on an existing program, the message data is compared against an XML file and binary str..... More

Print this item

  What does non-existent method start mean?
Posted by: StanHuang - Apr-03-2019, 03:33 AM - Forum: General Coding Help - Replies (3)

I am new and hadn't write any python program before. Now, I was assigned to take over a finished program. I found codes in main.py as:
[python]
#!/u..... More

Print this item

  need better than time.time()
Posted by: Skaperen - Apr-03-2019, 03:18 AM - Forum: General Coding Help - Replies (2)

when running fast, two calls to time.time() can return the same value. time.time() does do better than one second resolution but not good enough for ..... More

Print this item

  Finding perfect numbers
Posted by: BillMcEnaney - Apr-02-2019, 11:22 PM - Forum: General Coding Help - Replies (6)

Everyone, Lisp, Prolog, Python, and Haskell are my favorite programming languages partly because I love functional programming. But I know that Prolog..... More

Print this item

  How to multiprocessing Api post request
Posted by: kinojom - Apr-02-2019, 11:20 PM - Forum: General Coding Help - Replies (1)

I successfully post each record one by one from a csv file. However, I'm trying to implement multiprocessing to make it more efficient to handle large..... More

Print this item

  save parameters an data from image to csv
Posted by: pifko22 - Apr-02-2019, 10:22 PM - Forum: Data Science - No Replies

my code goes through photos from a folder and lists their parameters (age, emotion). I only need emotion.

  So all the photos I have in my folder s..... More

Print this item

  loading a csv file into python from pandas. Variable is not recognized
Posted by: vijjumodi - Apr-02-2019, 09:01 PM - Forum: Data Science - Replies (2)

I am facing an error in loading a csv file into python with pandas package it is not recognizing a variable. Can you guys please help me out with this..... More

Print this item

  loan
Posted by: mcgrim - Apr-02-2019, 08:56 PM - Forum: General Coding Help - Replies (51)

I am writing a program that calculates the remaining loan after a certain number of years n.
The initial borrowed amount is called 'balance' in this ..... More

Print this item

  Error in code
Posted by: iMedia - Apr-02-2019, 08:26 PM - Forum: General Coding Help - Replies (4)

This one working before. I am trying to figure out how to make it on a enter of a int a msg is played.

CODE:

[python]import time #Imports the ti..... More

Print this item

  Including classes from folder issue
Posted by: graham23s - Apr-02-2019, 06:40 PM - Forum: General Coding Help - Replies (1)

Hi Guys,

What i'm trying to do is execute a few actions on a few websites using selenium, i was going to have my structure like:

sites
--site1...... More

Print this item

  Pyinstaller Maximum recursion bug
Posted by: scales11 - Apr-02-2019, 03:16 PM - Forum: General Coding Help - Replies (8)

hello all.

I am trying to create an executable from a simple python script containing the pandas library, but I think that I have encountered a bug..... More

Print this item

  keylogger help? (not for malicious use, to be used with data visualisation)
Posted by: dav3javu - Apr-02-2019, 03:04 PM - Forum: General Coding Help - Replies (1)

hi,

I'm trying to install a keylogger on Mac OS, following this tutorial: tutorial for keylogger[/ur[url=https://python-forum.io/thread-17218.html]..... More

Print this item

  stiching python and batch
Posted by: jenya56 - Apr-02-2019, 02:57 PM - Forum: General Coding Help - Replies (1)

Dear all,
I have found the way to communicate between python and batch file. Below is my python and batch file. As you can see it is not that pretty ..... More

Print this item

  Please Need help with python script
Posted by: jstelmach - Apr-02-2019, 02:13 PM - Forum: General Coding Help - Replies (3)

Hello


I have2 python scripts that I need to combine to read a csv file line by line and take loop through the data in the csv exporting it via cU..... More

Print this item

  getting an error"Line 7: TypeError: 'int' object is not callable"
Posted by: JTNA - Apr-02-2019, 02:07 PM - Forum: Homework - Replies (4)

hello,
i get an error in this program when trying to find the sum of the values in the array.
this is the error "Line 7: TypeError: 'int' object is ..... More

Print this item

  Why isnt this working? pip installs not working with cmd prompt?
Posted by: ejected - Apr-02-2019, 01:53 PM - Forum: News and Discussions - Replies (2)

So I mainly use PyCharm and in PyCharm everything works fine when I pip install something but I'm trying to use my cmd prompt now and it isn't quite w..... More

Print this item

  Question on a code's design
Posted by: ebolisa - Apr-02-2019, 12:08 PM - Forum: General Coding Help - Replies (1)

Hi,

I'm designing a button-less clock using a Raspberry with a SD card and I'm doing it this way:

With a php code I create a data.json settings file..... More

Print this item

  PuLP Tutorials
Posted by: codeman - Apr-02-2019, 11:52 AM - Forum: Tutorial Requests and Submissions - Replies (3)

Hi all

guys I urgently require PuLP tutorials. Unless I am not searching the correct sources - as a newcomer to Python with the intent on upskilli..... More

Print this item

  How to get data from forms?
Posted by: dmytruk - Apr-02-2019, 11:34 AM - Forum: Web Scraping & Web Development - Replies (1)

How can I get data from a form (ProductCreateForm)?

If I write form = self.get_form(), then I just get a form template, where some data is selected..... More

Print this item

  understanding some code
Posted by: souprqtpie - Apr-02-2019, 11:07 AM - Forum: Homework - Replies (2)

Hello

I am currently learning how to code in python, and am doing a set of challenges set by the course I am on.
there was a certain challenge I was ..... More

Print this item

  Trying to implement Python into embedded OS
Posted by: thesurya7 - Apr-02-2019, 10:15 AM - Forum: General Coding Help - Replies (2)

I am currently trying to implement Python into an embedded system which has an OS. At the moment everything is in C language but I want to run python ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Variable not defined even... 7 minutes ago CoderMerv CoderMerv General Codin...
  Sorting Steps 1 hour ago MoreMoney MoreMoney General Codin...
  Numeric Enigma Machine 3 hours ago idev bowlofred General Codin...
  Elegant way to apply each... 5 hours ago sawtooth500 deanhystad General Codin...
  m3u8 using build-in brows... 10 hours ago kucingkembar kucingkembar Web Scraping ...
  Not getting forum emails Yesterday, 18:51 sawtooth500 snippsat Board
  argparse io issue Yesterday, 18:04 pyDream snippsat General Codin...
  tkinter logo Yesterday, 15:05 menator01 menator01 Bar
  Book Yesterday, 15:00 DPaul Boobiwoobi Bar
  How to parse and group hi... Yesterday, 13:16 ann23fr ann23fr General Codin...
  I don't know what is wron... Yesterday, 13:03 shereen deanhystad General Codin...
Most views
  The best Prog... 355219
  Web Scraping ... 255342
  Tutorial Requ... 254855
  New Users Int... 224695
  Newbie with P... 218021
Most reputation
buran 582
snippsat 499
Larz60+ 450
Gribouillis 329
deanhystad 311
Most replies
  New Users Int... 430
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11858
buran 8085
snippsat 7068
deanhystad 6117
metulburr 5150
Top referrers
Googlepro 20
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
CoderMerv Today
22206290 Today
idev Yesterday
Prashik404 Yesterday
BlackGhost99 Yesterday

User Panel Messages

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