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,969
» Latest member: samuelshlzeo7159
» Forum threads: 38,730
» Forum posts: 175,552

Full Statistics

Online Users
There are currently 42 online users.
» 1 Member(s) | 35 Guest(s)
Apple, Google, Bing, AOL, Mojeek, snippsat

Latest Threads
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
5 minutes ago
» Replies: 8
» Views: 396
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Yesterday, 06:39 PM
» Replies: 7
» Views: 2,802
My goal to be hired worki...
Forum: News and Discussions
Last Post: Larz60+
Sep-27-2025, 11:58 PM
» Replies: 1
» Views: 665
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,200
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,765
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: Pedroski55
Sep-27-2025, 03:54 AM
» Replies: 3
» Views: 656
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,153
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,132
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,424
Regarding pdf for PCEP an...
Forum: News and Discussions
Last Post: Biks
Sep-26-2025, 09:50 AM
» Replies: 1
» Views: 1,976

 
  For loop with 2 elements. No zip
Posted by: amassotti - May-03-2020, 07:48 AM - Forum: General Coding Help - Replies (10)

Hello everybody.

I've a doubt about the for loop with two elements like this:

[python]d1 = (1,2)
d2 = (3,4)

for item in (d1, d2):
print..... More

Print this item

  Dictionary (next)
Posted by: DPaul - May-03-2020, 07:15 AM - Forum: General Coding Help - Replies (6)

Hi,
I am developing an app that will convert Roman numbers into Arabic and vice versa.
Roman to Arabic is easy, the other way around is not so stra..... More

Print this item

  Python script - search Apache access_log.txt for all of the JavaScript (.js)
Posted by: jnovak - May-03-2020, 05:19 AM - Forum: General Coding Help - Replies (7)

What is expected from the python script:
1. read all the lines from given file access_log.txt and look for any presence of JavaScript files .js
2...... More

Print this item

  stopwatch
Posted by: amschueller - May-03-2020, 03:44 AM - Forum: GUI - Replies (5)

This is my stopwatch from using Tkinter. I was wondering if there was a way to save the times after you stop the stopwatch to some sort of list that w..... More

Print this item

  Tkinter calendar widget
Posted by: scratchmyhead - May-03-2020, 02:14 AM - Forum: GUI - Replies (4)

Hello. I'm new to Python and just started using Tkinter. I'm trying to use a calendar widget and I found this code from google search. The code works ..... More


Attached Files

Thumbnail(s)
       
Print this item

  zigzag example
Posted by: shabux - May-03-2020, 02:09 AM - Forum: General Coding Help - Replies (10)

windows 10, python 3.8

Trying to do zigzag example but not getting right result. I type following code, which I think is identical to the lesson's..... More

Print this item

  bulk import in arangodb from a dataframe
Posted by: ovidius80 - May-03-2020, 12:42 AM - Forum: Data Science - No Replies

Hello

I am trying to bulk import documents to an arangodb collection from dataframes. The code I use is like this:
[python]
import pandas as pd
..... More

Print this item

  Error: Nested method ?
Posted by: JohnnyCoffee - May-03-2020, 12:23 AM - Forum: General Coding Help - Replies (5)

Hi people.

In the method of a class I receive parameters for data processing. As a solution I had to nest methods to be able to sequence the code, ..... More

Print this item

  making dot move in a sinusoidal way
Posted by: philpsypol - May-02-2020, 09:18 PM - Forum: General Coding Help - Replies (3)

Hi folks,

I am trying to move a dot side-to-side in Python, using the following equation: x_coordinates = 0 + (amplitude * sin(frequency*current time..... More

Print this item

  Adding a node into an xml tree
Posted by: arbiel - May-02-2020, 08:04 PM - Forum: General Coding Help - Replies (7)

Hi

I'm wondering on the best wày to include a node into an xml tree, at the right location in a list of siblings.

xml.etree.ElementTree does not..... More

Print this item

  need PIL to import image
Posted by: ErnestTBass - May-02-2020, 06:43 PM - Forum: General Coding Help - Replies (2)

The following python code when run gives the error.

[code]
import cv2
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_sel..... More

Print this item

  Creating and destroying dynamic labels in Tkinter
Posted by: MarcusRoberts - May-02-2020, 06:14 PM - Forum: GUI - Replies (1)

I am trying to have two windows be created in tkinter, one has buttons for many different genres, the other a blank window. When I press one of the bu..... More

Print this item

  inspiration
Posted by: astral_travel - May-02-2020, 05:55 PM - Forum: News and Discussions - Replies (6)

i was wondering...

what inspires you in programming ? or specifically being in the profession... ?

Print this item

  Problem in flattening list
Posted by: Shahmadhur13 - May-02-2020, 03:52 PM - Forum: General Coding Help - Replies (5)

I tried to flatten list.I have nested list and i want all iterables of that nested list in one list without any nested list. Itried with itertool.chai..... More

Print this item

  Appending to a text string
Posted by: syno7878 - May-02-2020, 03:34 PM - Forum: Homework - Replies (10)

Hi All

I have the following code which reads the contents of a file, appends 1,2,3, etc to the contents and then writes the results to a new file:..... More

Print this item

  If Statement
Posted by: Bobcat - May-02-2020, 03:28 PM - Forum: General Coding Help - Replies (12)

Hi. I'm struggling with my else statement to print 'Sorry you are not entitled to vote due to being outside the uk'

[python]#Ask user for details
..... More

Print this item

  else problem
Posted by: MJB - May-02-2020, 01:41 PM - Forum: General Coding Help - Replies (3)

Hello sorry for my English because I am french. I have a problem
when I run the program and I enter the right code that is "10"
it doesn't change t..... More

Print this item

  Unexpected result
Posted by: linton - May-02-2020, 12:44 PM - Forum: General Coding Help - Replies (4)

Os-Ubuntu 18.04 Python - Ver 3.6 Using Idle .

dms = input('DR_Lat (deg,min,sec,N/S/E/W) = ')
print(dms[0])
Output:
[ou..... More

Print this item

  How to calculate column mean and row skip non numeric and na
Posted by: Mekala - May-02-2020, 12:31 PM - Forum: General Coding Help - Replies (5)

Hi,
I want to calculate column mean and row mean & skip "na" and "non-numeric". I use below code, but it gives some warning as show below:

__main_..... More

Print this item

  project error code
Posted by: pkmnmewtwo - May-02-2020, 12:22 PM - Forum: Homework - Replies (2)

when i run my program i get an error code ValueError: invalid literal for int() with base 10: ''
in line 114, in <module>
response = input("Add"..... More

Print this item

  Hyperlink Click is not working in Selenium webdriver
Posted by: rajeev1729 - May-02-2020, 11:21 AM - Forum: Web Scraping & Web Development - No Replies

I am trying to use the selenium webdriver to automate scraping but unable to apply click on hyperlink. I also want to open it in new tab.

[python]..... More

Print this item

  User Profiling
Posted by: akis - May-02-2020, 10:26 AM - Forum: Data Science - Replies (5)

Hello to all of you,

I 've created a (fake, for educational reasons only on user profiling), online store. My store tracks the "movements-cl..... More

Print this item

  How to get RGB colors in tkinter
Posted by: menator01 - May-02-2020, 09:35 AM - Forum: GUI - Replies (3)

Posted some examples in another thread about colors in tkinter.
Just wanted to post a couple ways to get RGB colors in tkinter.

For python2.7
[py..... More

Print this item

  [FLASK] How to structure the code in my case ?
Posted by: Fre3k - May-02-2020, 09:28 AM - Forum: Web Scraping & Web Development - Replies (4)

Good morning lads, and gents.

I'm currently trying to dig into Flask, and create a simple webpage with it.


For better learning, I also have a ..... More

Print this item

  Coding improvements
Posted by: chris_drak - May-02-2020, 08:59 AM - Forum: Code Review - Replies (2)

Hello,
I have the following code and I would like it to give results in about 20 seconds. Thanks...

[python]import string
import random
import t..... More

Print this item

  how to pass javascript variables to url_for function in a flask template
Posted by: experimental - May-02-2020, 08:15 AM - Forum: Web Scraping & Web Development - Replies (5)

i need to dynamically generate parameters for url after clicking on <a href> link. having jinja code like this:

[python]
{% for i in data %}
<a hre..... More

Print this item

  Kivy text label won't shows up!
Posted by: AVD_01 - May-02-2020, 07:11 AM - Forum: GUI - Replies (1)

I created a "Hello, Kivy" window but the text won't shows up Think
I used Pycharm64 & Python3.7 environment to run the code:

[..... More

Print this item

  Countdown animation
Posted by: raossabe - May-02-2020, 07:05 AM - Forum: GUI - Replies (2)

Hello!

I'm looking for a way to create a countdown animation.

Something like this but in python instead.
https://css-tricks.com/how-to-create-..... More

Print this item

  How to read file inside class
Posted by: Mekala - May-02-2020, 06:49 AM - Forum: General Coding Help - Replies (11)

Hi,
I have below code, I am passing the file path and I want to read data. I use the below code, but it's not reading anything.

[python]import pan..... More

Print this item

  ARDUINO via Python: Dissapointing
Posted by: ironfelix717 - May-02-2020, 06:27 AM - Forum: News and Discussions - Replies (1)

Hello,

This is a library recommendation....

I recently delved back into my Arduino that's been collecting dust. Being familiar with the robust c..... More

Print this item

  time.sleep
Posted by: mtnwinds - May-02-2020, 02:29 AM - Forum: General Coding Help - Replies (4)

Brand new to Python. If I want to pause the execution of my program for an hour, is sleep() the appropriate function to call? Do I have to express t..... More

Print this item

  "socket.gaierror: [Errno 8] nodename nor servname provided, or not known"
Posted by: tucktuck9 - May-02-2020, 02:06 AM - Forum: General Coding Help - No Replies

I'm working locally in Visual Studio on a simple Python program that prompts the user for a URL, then parses all of the anchor <a> tags. I'm using htt..... More

Print this item

  How can I create a subclass of XlsxWriter?
Posted by: aquerci - May-02-2020, 12:44 AM - Forum: General Coding Help - Replies (2)

Hi guys,

I would like to create a subclass of XlsxWriter in order to add new methods to semplify my work. For example, the script that I have in my m..... More

Print this item

  Syntax Error with = sign and more
Posted by: Kathleen57 - May-02-2020, 12:33 AM - Forum: General Coding Help - Replies (3)

Hi,
I'm using the book Coding Projects in Python to (slowly) learn Python. This exercise is to program the turtle to draw multiple colored lines on ..... More

Print this item

  get type of a value as a simple string
Posted by: Skaperen - May-01-2020, 11:57 PM - Forum: News and Discussions - Replies (1)

what is the best way to get just a string for the type of a value? would this be sufficient?

ts = str(type(foo)).split("'")

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Comparing 2 100GB Drives/... 5 minutes ago tester_V snippsat General Codin...
  Select Python comment (#)... Yesterday, 18:39 SpongeB0B tester_V General Codin...
  My goal to be hired worki... 09-27, 23:58 GnomeSweetGnome Larz60+ News and Disc...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  Unable to resolve FileNot... 09-27, 03:54 llarkin6 Pedroski55 General Codin...
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
  Using Python to SSH and R... 09-26, 03:53 justaguy SprunkiRetake Networking
Most views
  The best Prog... 577289
  Tutorial Requ... 500455
  Web Scraping ... 440966
  Newbie with P... 384997
  New Users Int... 369405
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+ 12089
buran 8176
snippsat 7370
deanhystad 6896
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
samuelshlzeo7159 Today
Seu12Jorge Yesterday
seomelbourneaustralia Yesterday
Jacobjoift Yesterday
zalexstolzeoz5360 Yesterday

User Panel Messages

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