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,247
» Latest member: Kacper
» Forum threads: 38,779
» Forum posts: 175,813

Full Statistics

Online Users
There are currently 52 online users.
» 1 Member(s) | 46 Guest(s)
Applebot, Bing, Google, AOL, snippsat

Latest Threads
New to python and coding
Forum: Homework
Last Post: Larz60+
6 hours ago
» Replies: 1
» Views: 42
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
6 hours ago
» Replies: 11
» Views: 243
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
6 hours ago
» Replies: 3
» Views: 92
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
11 hours ago
» Replies: 5
» Views: 227
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:37 AM
» Replies: 1
» Views: 84
Data Science
Forum: Data Science
Last Post: mamta25
Yesterday, 05:27 AM
» Replies: 3
» Views: 2,600
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 181
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 168
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,816
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,407

 
  help with lxml
Posted by: meems - Apr-27-2017, 10:13 PM - Forum: Web Scraping & Web Development - Replies (8)

Hi, anyone here good with lxml?
I'm trying to learn it.


[python]page = requests.get('http://econpy.pythonanywhere.com/ex/001.html')
tree = html..... More

Print this item

  Saving data in the Debugger
Posted by: macellan85 - Apr-27-2017, 09:43 PM - Forum: General Coding Help - Replies (1)

HI guys 

I'm having trouble with the debugger. If someone give me a hand I'll appreciate it.  

Problem is, I have a script which is using python..... More

Print this item

  Returning the highest value out of 3 values
Posted by: ComputerSkillet - Apr-27-2017, 08:19 PM - Forum: Homework - Replies (2)

I'm trying to create a program that will allow the user to input 3 values and have the program state the highest value.
The error:

line 7, in <mod..... More

Print this item

  For x in [1,2,3]
Posted by: Ingo - Apr-27-2017, 07:24 PM - Forum: General Coding Help - Replies (2)

Since most of the python tutorials are in English and that's not my main lenguage, i'm very confused about the "For x in [...]" Usage.
Does it work l..... More

Print this item

  Append to dataframe with for loop
Posted by: nocoffeenoworkee - Apr-27-2017, 06:43 PM - Forum: General Coding Help - Replies (2)

I'm trying to loop through a list(y) and output by appending a row for each item in y to a dataframe.
y=[datetime.datetime(2017, 3, 29), datetime.dat..... More

Print this item

  NameError: name 'patterns' is not defined
Posted by: Debian - Apr-27-2017, 06:19 PM - Forum: General Coding Help - Replies (1)

Hello guys,

I'm trying to install graphite with Grafana ..... More

Print this item

  Filter and lambda question
Posted by: smw10c - Apr-27-2017, 03:57 PM - Forum: Data Science - Replies (3)

Below I am using a filter with a lambda expression. Up until now, in my course, the "g" in lambda referred to a specific cell in a data frame. For ins..... More

Print this item

  problem nin home work
Posted by: maayan11 - Apr-27-2017, 03:36 PM - Forum: Homework - Replies (1)

hello,
in my home work I need to write a function that gets text file and work
and have to find the first time that the word appears and retuen (a,b..... More

Print this item

  Help On Platformer
Posted by: Spectroxis - Apr-27-2017, 12:46 PM - Forum: Game Development - Replies (2)

Hello. I'm relatively new to python and for my python class I wanted to create a python plat-former. Everyone is well on their way to completing there..... More

Print this item

  How to find any non positive integer
Posted by: noob - Apr-27-2017, 11:15 AM - Forum: General Coding Help - Replies (3)

So I need to return the value '-1' when s = any non-digits (other than spaces).
my code so far looks like :
[python]
def parseVote(s=None):
    if..... More

Print this item

  Blackjack total from string HW
Posted by: ichistarr - Apr-27-2017, 10:06 AM - Forum: Homework - Replies (5)

So I've got an assignment that i need help with the game Blackjack on python.
I was given a list to work with (not allowed to change it either) and a..... More

Print this item

  How to make a script to find a certain word in text files in a whole directory ?
Posted by: RandoomDude - Apr-27-2017, 09:14 AM - Forum: General Coding Help - Replies (2)

I have not yet attempted to make this.
i browsed for 1 hour on web,could not find a single article


Wall

>Thanks in advance Pray

Print this item

  Checking connectivity for sockets in Python
Posted by: pikkip - Apr-27-2017, 08:39 AM - Forum: General Coding Help - Replies (1)

I want to check the connection between my client and server ie. should know as soon as the connection is cut off. I tried settimeout( ) but it gave "t..... More

Print this item

  Creating shadow in OpenGL with normal?
Posted by: hsunteik - Apr-27-2017, 08:23 AM - Forum: General Coding Help - No Replies

[color=#000000][size=medium][font=Helvetica, Arial, sans-serif]The basic shadowmap algorithm consists in two passes. First, the scene is rendered from..... More

Print this item

  empty arguments
Posted by: noob - Apr-27-2017, 07:16 AM - Forum: General Coding Help - Replies (16)

Hello, I've stumbled across a problem when creating a program.
The start to my program looks along the lines of:

def parseVote(s):
    if s == []..... More

Print this item

  Need advice: UDP? TCP? Multithread?
Posted by: Guybrush - Apr-27-2017, 07:14 AM - Forum: Networking - Replies (5)

Hi all!

I need some advice for a software that I need to do...

I've 6-8 Cameras( intel realsense) in a room. Every camera calculate the contours..... More

Print this item

  Help in displaying odd numbers from 1 to 100 in py
Posted by: RandoomDude - Apr-27-2017, 04:26 AM - Forum: General Coding Help - Replies (7)

I want a script to display odd numbers from 1 to 100 (in Python 3.x)

>Thanks in advance

Print this item

  why does integer input give error invalid literal for int()
Posted by: PyPhanman - Apr-27-2017, 04:12 AM - Forum: General Coding Help - Replies (2)

I am keep getting an error if I put in something other than an integer. I want the loop to reiterate if say enter is pushed or if a letter is input. I..... More

Print this item

  string to hex and back again
Posted by: Skaperen - Apr-27-2017, 03:32 AM - Forum: General Coding Help - Replies (14)

i want to convert a string to hexadecimal

'Skaperen' -> '536b61706572656e'
'Python' -> '507974686f6e'

and back again

'536b61706572656E' -> '..... More

Print this item

  Skipping a line on output
Posted by: lucas0150 - Apr-27-2017, 01:52 AM - Forum: Homework - Replies (3)

Hi.

Sorry for the poor English, I'm not a native speaker.

The boring code I'm writing works as follows. The user inputs a number T. The user is ..... More

Print this item

  What's your name? - returns "None"
Posted by: Mandm723 - Apr-26-2017, 09:31 PM - Forum: General Coding Help - Replies (4)

I am trying to make a simple, what is your name? hello so and so. But whenever I run it it says the name is "none" any help?

Code
[python]..... More

Print this item

  Compression/Decompression Code not working
Posted by: Zanbezi - Apr-26-2017, 08:56 PM - Forum: General Coding Help - Replies (3)

My code is supposed compress a text file into numbers and be able to save it to a file.Its also meant to be able to decompress a file and save the res..... More

Print this item

  Calculating what year it is when you are 100 years old
Posted by: dankim9000 - Apr-26-2017, 07:55 PM - Forum: General Coding Help - Replies (2)

[color=#242729][size=small][font=Arial,]I'm trying to figure out how to get the program to calculate what year it is when the user is 100 years old.[/..... More

Print this item

  groups attribute of a groupby object question
Posted by: smw10c - Apr-26-2017, 07:28 PM - Forum: General Coding Help - Replies (2)

I am having trouble understanding the following code. Note, auto is a DataFrame that contains the variables yr (year) and mpg (miles per gallon):

[..... More

Print this item

  browser tab form
Posted by: metulburr - Apr-26-2017, 05:35 PM - Forum: Board - Replies (6)

What are other alternatives?

These are optional but i just havent done them yet to know 100% sure that it would work without a problem. 
favicon O..... More

Print this item

  Simple UDP server not receiving
Posted by: frank2644 - Apr-26-2017, 05:34 PM - Forum: General Coding Help - Replies (6)

My Windows7 UDP server with the code below from wiki.python.org is not working.

I am sending a UDP packet from an Arduino , but nothing is being r..... More

Print this item

  Reasons to choose Python over C++?
Posted by: RandoomDude - Apr-26-2017, 03:56 PM - Forum: General Coding Help - Replies (62)

What are the reasons to choose python over c++?
>Is it because of the simplicity and shortness of the Scripts in Python?


Confused **confused..... More

Print this item

  Need Help with an Antivirus script in py3
Posted by: RandoomDude - Apr-26-2017, 12:30 PM - Forum: General Coding Help - Replies (9)

I have created an av script in py3,i have been studying py3 for the past four weeks,But this compiling error is out of my league  Cry
I was so h..... More

Print this item

  UDP Socket: How to clear the buffer and ignore oldes messages
Posted by: Guybrush - Apr-26-2017, 09:46 AM - Forum: Networking - Replies (3)

Hi all!
[color=#242729][size=small][font=Arial,]I've some problem with Sockets UDP in P..... More

Print this item

  Drag and Drop GUI
Posted by: crystallized_neuron - Apr-26-2017, 07:00 AM - Forum: GUI - Replies (3)

Hi,

I am currently looking for a python (drag and drop) GUI. Is there one in Eclipse Neon? I can't seem to find one. All I can see is the TKinter, wh..... More

Print this item

  General Python code for Newbie
Posted by: Ramakrishna - Apr-26-2017, 05:34 AM - Forum: Web Scraping & Web Development - Replies (22)

My question here:
Hi all, i am new to the python scripting language. I have a requirement that to compare the two excel files. 
Requirement is: Many..... More

Print this item

  Total after tax
Posted by: theunknown - Apr-26-2017, 05:30 AM - Forum: Homework - Replies (5)

Hello everyone! :)

Can someone please explain to me what is wrong with my code? I need to give the total of the amount a user enters and show how m..... More

Print this item

  documentation for raw bytes
Posted by: Skaperen - Apr-26-2017, 04:55 AM - Forum: News and Discussions - Replies (4)

i have a few programs to write that i could have written in C and would have had no problems.  but i started writing them in Python3 and am running in..... More

Print this item

  Using mmap.mmap and re.finditer
Posted by: Larz60+ - Apr-26-2017, 12:31 AM - Forum: General Coding Help - Replies (3)

Does anyone have an example of using Using mmap.mmap
and re.finditer with a marker to split binary files?

Forgot to add ... on binary data

Print this item

  Hex3d: 3-dimensional hex maps with Pygame
Posted by: Mekire - Apr-25-2017, 10:46 PM - Forum: Code sharing - No Replies

Repo:
https://github.com/Mekire/hex3d

Overview:
Generates 3-dime..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding 6 hours ago lary_p Larz60+ Homework
  [Tkinter] I’m building a ... 6 hours ago tsgiannis tsgiannis GUI
  Help with Serial.write in... 6 hours ago racingsubby Larz60+ General Codin...
  Backward compatibility qu... 11 hours ago yutaozhou Gribouillis News and Disc...
  [split] print two differe... Yesterday, 05:37 Reema Gribouillis General Codin...
  Data Science Yesterday, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
Most views
  The best Prog... 578793
  Tutorial Requ... 509695
  Web Scraping ... 441902
  Newbie with P... 385891
  New Users Int... 375816
Most reputation
buran 581
snippsat 510
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+ 12105
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Kacper Today
isla123456 Today
vibrometro Today
thebigback Yesterday
dimitriwati Yesterday

User Panel Messages

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