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,399
» Latest member: lexttsz8168
» Forum threads: 38,826
» Forum posts: 176,031

Full Statistics

Online Users
There are currently 45 online users.
» 2 Member(s) | 40 Guest(s)
Bing, Google, AOL, jogl, Globe43

Latest Threads
My first python game : Ti...
Forum: Game Development
Last Post: Globe43
4 minutes ago
» Replies: 9
» Views: 88,575
Testowałem GGBet dwa tygo...
Forum: General Coding Help
Last Post: lexttsz8168
28 minutes ago
» Replies: 0
» Views: 8
Keeping It Real on Marria...
Forum: General Coding Help
Last Post: zajulashtolzeoz2744
32 minutes ago
» Replies: 0
» Views: 10
federaxcvncv
Forum: General Coding Help
Last Post: WillieChier
1 hour ago
» Replies: 0
» Views: 16
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
11 hours ago
» Replies: 1
» Views: 76
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Yesterday, 09:12 AM
» Replies: 1
» Views: 4,594
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 08:37 AM
» Replies: 4
» Views: 186
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Yesterday, 07:27 AM
» Replies: 7
» Views: 3,602
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 156
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 300

 
  calling Class method inside the Class definition
Posted by: tkj80 - Jan-23-2017, 04:03 AM - Forum: General Coding Help - Replies (1)

Hi,

I'm writing a class Sunday
1) to get datetime of previous Sunday (method)
2) to return the following attributes:
   a) day (in string)
   b..... More

Print this item

  How to form a dataframe reading separate dictionaries from .txt file?
Posted by: Doug - Jan-23-2017, 01:32 AM - Forum: Data Science - Replies (1)

Hey! Got an issue here. I need to read each line of .txt file as separate dictionary. Then to organize data in columns by the key of each dictionary...... More

Print this item

  Run python script in RPi2 from ssh session
Posted by: marciokoko - Jan-23-2017, 01:31 AM - Forum: General Coding Help - Replies (5)

If I run a python script on a RPi2 from an ssh session, that script stops once the ssh session is terminated.  How do I make that python script run in..... More

Print this item

  Python "read -n" equivalent?
Posted by: rhubarbpieguy - Jan-22-2017, 09:05 PM - Forum: General Coding Help - Replies (8)

What is the Python equivalent to the bash "read -n" command?

I understand input() pauses for user input. However, if I'm expecting x characters I'd..... More

Print this item

  Simple Series Keyword Error
Posted by: Kris - Jan-22-2017, 06:46 PM - Forum: Data Science - Replies (4)

import pandas 
import numpy

#create python dictionary

d = { 'name' : Series ( ['Braund','Cummins','Heikkinen','Allen'], index ['1','2','3','4']..... More

Print this item

  How to make a message if there is a value error
Posted by: theguy007 - Jan-22-2017, 05:40 PM - Forum: General Coding Help - Replies (2)

[python]
import random

secret_num = random.randrange(1, 10)

while True:
       number = int(input("Guess a number between 1 and 10: "))
     ..... More

Print this item

  My sockets are not working
Posted by: Ponomarenko Pavlo - Jan-22-2017, 05:31 PM - Forum: General Coding Help - Replies (2)

I am testing my server and client with two computers.
This is my server:
[python]import socket
server = socket.socket(socket.AF_INET, socket.SOCK_S..... More

Print this item

  want to print the value of a key
Posted by: johnkennykumar - Jan-22-2017, 05:16 PM - Forum: General Coding Help - Replies (2)

[python]import http.client, urllib.request, urllib.parse, urllib.error

headers = {
    # Request headers
    'Content-Type': 'application/json',..... More

Print this item

  how to convert a string to hex
Posted by: Skaperen - Jan-22-2017, 11:03 AM - Forum: General Coding Help - Replies (4)

what is the best way to convert a string to hexadecimal?

the purpose is to get the character codes to see what is being read in from a file...... More

Print this item

  Return not working
Posted by: Techmokid - Jan-22-2017, 10:42 AM - Forum: General Coding Help - Replies (3)

Hello

I have been working on a program that works as an arduino communicator.
The idea is for the arduino to write to a file on the computer inste..... More

Print this item

  import requests gives me error
Posted by: blckpstv - Jan-22-2017, 10:19 AM - Forum: General Coding Help - Replies (1)

When importing requests after installing succesfully with pip install requests (osx mac sierra) (python 2.7.13)

I get 

>>> import requests

[c..... More

Print this item

  why do most algorithm only take number between -1 and 1 as input or output?
Posted by: hsunteik - Jan-22-2017, 09:37 AM - Forum: Bar - Replies (5)

Why do algorithm like Perlin noise and neural network and many more algorithm must have the input and output to be between -1 and 1,is there a reason ..... More

Print this item

  Where is the loophole in my code
Posted by: landlord1984 - Jan-22-2017, 04:05 AM - Forum: Homework - Replies (15)

Question is:

Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements...... More

Print this item

  Why is this multiplication not working?
Posted by: klopeks - Jan-21-2017, 11:54 PM - Forum: General Coding Help - Replies (4)

Hello,I'm very new to Python, and I'm having trouble with some basic math.  I've getting a user to input a number and assigning it to a variable.  The..... More

Print this item

  Dear friends, i need your help pls!
Posted by: Josh_Harmony - Jan-21-2017, 08:45 PM - Forum: Web Scraping & Web Development - Replies (4)

My name is Joshua. I am a developer. I do most of my programming using vb.net (visual studio). Until my new roommate introduced me to an entire new la..... More

Print this item

  How to write user defined exceptions
Posted by: kvc4 - Jan-21-2017, 03:01 PM - Forum: General Coding Help - Replies (1)

Hello...I am new to Python...

Please lemme know how to write user defined exceptions in python and how to use them in other classes?

Print this item

  Cryptography Problem
Posted by: PYTHONEUR - Jan-21-2017, 02:15 PM - Forum: Homework - Replies (28)

Please Help me what's the prob with str and int 

If someone can explain this problem  Confused 

They said me : [color=#e93f34][size=medium][..... More

Print this item

  OhodO optical marks recogination
Posted by: mintsilver - Jan-21-2017, 01:51 PM - Forum: Code sharing - No Replies

Hi, this my program:
the name: OhodO
ver: 1.0
Prog language: python 3.6 + opencv
Lic : Free + Gpl
interface language: Arabic - English
For: opti..... More

Print this item

  local variable 'l' referenced before assignment...
Posted by: darkreaper1959 - Jan-21-2017, 01:05 PM - Forum: Homework - Replies (4)

Hi everyone, this code is going well but my brain cannot take it any more, could someone please help me. This is my traceback error and I have tried m..... More

Print this item

  how to draw terrain like minecraft in python using opengl with perlin noise value?
Posted by: hsunteik - Jan-21-2017, 11:45 AM - Forum: General Coding Help - No Replies

In my previous thread/post ,I have asked a question about drawing Perlin noise terrain,mekire have helped me quite a lot by teaching me how to draw 2d..... More

Print this item

  what is [o,]?
Posted by: landlord1984 - Jan-21-2017, 08:48 AM - Forum: General Coding Help - Replies (6)

I am studying following teaching me about composition of class objects. What is o doing here?    

[python]def print_all_2(self):
        def gen(o..... More

Print this item

  chat system
Posted by: x64 - Jan-21-2017, 07:39 AM - Forum: Web Scraping & Web Development - Replies (2)

i can do socket chat in ubuntu terminal based but i can't implement it to django. If it is possible please help.Or if you know any other module to cre..... More

Print this item

  voronoi vs perlin noise?
Posted by: hsunteik - Jan-21-2017, 07:20 AM - Forum: General Coding Help - Replies (1)

what is the pros and cons of the both noise respectively?
what can be done in one noise ,but not the other noise?
which is recommend to create game ..... More

Print this item

  what should i do after generating the perlin noise value?
Posted by: hsunteik - Jan-21-2017, 05:59 AM - Forum: General Coding Help - Replies (8)

after generating the 3d perlin noise value(x,y and z respectively(the value is between -1 and 1)),how do i use the generated value to create texture o..... More

Print this item

  want to know the kind of object whether its a python or json object
Posted by: johnkennykumar - Jan-21-2017, 05:34 AM - Forum: General Coding Help - Replies (5)

[code]import http.client, urllib.request, urllib.parse, urllib.error, base64

headers = {
   # Request headers
   'Content-Type': 'application/j..... More

Print this item

  bind hover on tkinter.ttk.Treeview
Posted by: Larz60+ - Jan-21-2017, 03:46 AM - Forum: GUI - Replies (4)

I have been trying to find an example that shows how to bind mouse over Treeview cell without much success.
I thought that '<Enter>' could be used, b..... More

Print this item

  Why Python's standard library is hard to read?
Posted by: landlord1984 - Jan-20-2017, 10:41 PM - Forum: Data Science - Replies (2)

Are you guys generally search and read from here: https://docs.python.org/3/library/funct[url=https://python-forum.io/thread-1694.html]..... More

Print this item

  Using a range and for loop - temp converter
Posted by: rattlerskin - Jan-20-2017, 05:53 PM - Forum: Homework - Replies (5)

Hello,

     This is my first post and my first exposure to Python as a result of a college course I'm taking. My assignment asks to modify a progra..... More

Print this item

  Can this be done?
Posted by: SteveMann - Jan-20-2017, 05:51 PM - Forum: General Coding Help - Replies (4)

I have been using a Tingbot which runs on a modified version of Jessie.  There is an interesting feature (called a decorator) in the Tingbot Python th..... More

Print this item

  Why is choicebox not displayed?
Posted by: merlem - Jan-20-2017, 04:54 PM - Forum: GUI - Replies (2)

The code:
[python]
import wx

showliste = ["item1", "item2", "item3"]

class Mainframe(wx.Frame):
    def __init__(self, parent, id, title):
 ..... More

Print this item

  HTTPError: Forbidden when try download image
Posted by: b33g33 - Jan-20-2017, 04:53 PM - Forum: Web Scraping & Web Development - Replies (8)

i want to download picture on wallhaven.cc and i can get picture url but image is not download its give an error ; 

my code is ;

[python]import ..... More

Print this item

  Neighbours in an array
Posted by: MattaFX - Jan-20-2017, 04:26 PM - Forum: Homework - Replies (10)

Hi everyone,

I've got the following problem: 

Example: 
If the original Input is:


[python]
[[0 0 0 0 0 0 0 1]
[0 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 0]
..... More

Print this item

  Variable not defined
Posted by: ASDF - Jan-20-2017, 12:53 PM - Forum: General Coding Help - Replies (2)

This is very simple (as I am new to coding) but why does this keep saying 'yes' is not defined?
[python]def shop(answer):

    if answer == yes
  ..... More

Print this item

  looking 4 py code: file byte/character frequency
Posted by: Skaperen - Jan-20-2017, 05:08 AM - Forum: Bar - Replies (2)

the command line argument would be a filename in the coding used by the host system.  if the given name is what the platform normally uses to designat..... More

Print this item

  Class - Error Message (Indentation)
Posted by: tkj80 - Jan-20-2017, 03:55 AM - Forum: General Coding Help - Replies (3)

Hi,

I have a writing a Class definition. However, I got error msg: 

[error]SyntaxError: inconsistent use of tabs and spaces in indentation[/erro..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  My first python game : Ti... 4 minutes ago ForsakenDusk Globe43 Game Developm...
  Testowałem GGBet dwa tygo... 28 minutes ago lexttsz8168 lexttsz8168 General Codin...
  Keeping It Real on Marria... 32 minutes ago zajulashtolzeoz2744 zajulashtolzeoz2744 General Codin...
  federaxcvncv 1 hour ago WillieChier WillieChier General Codin...
  Opencv findContours Q 11 hours ago jogl Pedroski55 General Codin...
  Struggles I Faced While E... Yesterday, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... Yesterday, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... Yesterday, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  IP address for users 12-27, 05:53 Robots itx_sumeet Networking
Most views
  The best Prog... 580417
  Tutorial Requ... 519604
  Web Scraping ... 442785
  Newbie with P... 386986
  New Users Int... 386562
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
lexttsz8168 Today
zajulashtolzeoz2744 Today
WillieChier Today
cruisesfares Today
azam Today

User Panel Messages

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