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,974
» Latest member: Williamcaurb
» Forum threads: 38,732
» Forum posts: 175,557

Full Statistics

Online Users
There are currently 44 online users.
» 0 Member(s) | 38 Guest(s)
Bing, Google, AOL, AOL, Applebot

Latest Threads
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
4 hours ago
» Replies: 6
» Views: 718
Integer Factorization Too...
Forum: Code sharing
Last Post: fosuwxb
5 hours ago
» Replies: 0
» Views: 44
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
9 hours ago
» Replies: 8
» Views: 446
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Yesterday, 06:39 PM
» Replies: 7
» Views: 2,826
My goal to be hired worki...
Forum: News and Discussions
Last Post: Larz60+
Sep-27-2025, 11:58 PM
» Replies: 1
» Views: 691
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,225
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,796
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,195
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,156
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,456

 
  dict printing last key,value out of loop
Posted by: anna - Feb-22-2019, 10:24 AM - Forum: General Coding Help - Replies (6)

Hi There,


[python]
bgp_prefix_dict = {}
#dict for BGP prefixes
for line in ip_prefix:
if 'ip ip-prefix' i..... More

Print this item

  finding yesterday and tomorrrow without using date.time module
Posted by: apexman - Feb-22-2019, 06:47 AM - Forum: General Coding Help - Replies (10)

self learning python and been stuck trying to figure this out.
Trying to output both the day before and the day after a given date without using the..... More

Print this item

  syslog module not built during cross compile
Posted by: colinliao - Feb-22-2019, 06:33 AM - Forum: General Coding Help - No Replies

Hi All,

I am tring to porting python2.7.15 to my arm platform, and I would like to use syslog module in my code.

[b]below is my configure option..... More

Print this item

  CODING HELP
Posted by: soyboypablo - Feb-22-2019, 03:47 AM - Forum: Homework - Replies (1)

we are currently using this line of code to open a Solenoid lock using voice activation, however it is taking forever to recognize and is tuck on ‘lis..... More

Print this item

  Class Task
Posted by: HSL - Feb-21-2019, 11:34 PM - Forum: Homework - Replies (3)

Hey, i need help with a class task I got today.

A program is required to read the data for each member from the text file. The program should use t..... More

Print this item

  Using chunk size issue
Posted by: sandy - Feb-21-2019, 10:30 PM - Forum: General Coding Help - Replies (1)

Hi ,

My inputs

query_string= sel * from table ( 340k rows)
I am using
[python]
df = pd.read_sql(query_string ,conn_bmg,chunksize=50000)
[/..... More

Print this item

  Fibonnaci
Posted by: PythonNoob99 - Feb-21-2019, 09:07 PM - Forum: Homework - Replies (13)

How do I translate this problem to Python?

The nth number bigger than x in the fibonacci secuence.

I already have

n = int(input(“Give a numb..... More

Print this item

  Beginner: urllib error
Posted by: tomfry - Feb-21-2019, 07:48 PM - Forum: Web Scraping & Web Development - Replies (7)

Very much a python beginner and have stumbled into this problem whilst following the Udacity python course. I realize that the course uses python2, ho..... More

Print this item

  match values against keys three dict
Posted by: anna - Feb-21-2019, 05:30 PM - Forum: General Coding Help - No Replies

Hi All,
I have three dict post parsing configuration,need to match values, please guide

[python]from ciscoconfparse import CiscoConfParse
from ci..... More

Print this item

  beautifulsoup error
Posted by: rudolphyaber - Feb-21-2019, 05:29 PM - Forum: Web Scraping & Web Development - Replies (7)

I'm using python 3.6 on Windows 7 and I'm following the directions on this page -> ..... More

Print this item

  Problem with the math.sin(x) function
Posted by: Carson147 - Feb-21-2019, 04:36 PM - Forum: General Coding Help - Replies (4)

I was trying to make a simple sine calculator using degrees. However when I tested some values they come close but doesn't match my phone's calculator..... More

Print this item

  Getting a desired vector from lsqr in python when solving a linear system
Posted by: SJ001 - Feb-21-2019, 04:19 PM - Forum: General Coding Help - No Replies

I am trying to solve a linear system which has multiple solutions. Here is part of my code:

from scipy.sparse.linalg import lsqr
solution ..... More

Print this item

  wait.until(EC.element_to_be_clickable) failed to click
Posted by: gahhon - Feb-21-2019, 04:11 PM - Forum: Web Scraping & Web Development - Replies (4)

def FindElementById(Element):
    clickable = wait.until(EC.element_to_be_clickable((By.ID, Element)))
    clickable.click()
..... More

Print this item

  browser table value counting
Posted by: rudolphyaber - Feb-21-2019, 03:47 PM - Forum: Web Scraping & Web Development - No Replies

[Image: NbdFw1WBojn1SrcA6]

Currently for work my team has to use a web application to sign in, enter our credentials, c..... More

Print this item

  Issue with command line arguments
Posted by: artblinked - Feb-21-2019, 03:42 PM - Forum: General Coding Help - Replies (2)

So I'm having issues with my program command line arguments. In pycharm on windows it works great but when I go to linux it only takes arguments up to..... More

Print this item

  invalid syntax near break
Posted by: synthex - Feb-21-2019, 03:11 PM - Forum: General Coding Help - Replies (2)

I write code

[python]test='C:\Users\Admin\Desktop\test.lst' # folder where must be my test.lst

test='C:/Users/Admin/Desktop/test.lst'
DataSet='..... More

Print this item

  How to run local python script to remote machine without sending
Posted by: krishna1989 - Feb-21-2019, 01:33 PM - Forum: Networking - Replies (1)

I have created a python script on my local machine, i want to run this local script on multiple remote machines (Linux and Windows servers) and redire..... More

Print this item

  help with threading module and passing global variables
Posted by: ricardons - Feb-21-2019, 12:34 PM - Forum: General Coding Help - Replies (1)

Hi

I'm having a big trouble to get this to work.

I have a function that I want to put in a thread (or multiprocess). This function requires 3 v..... More

Print this item

  Working with open source software
Posted by: Yamin - Feb-21-2019, 11:54 AM - Forum: News and Discussions - Replies (7)

Hi I was wondering if you could help me understand working with open source software. As I understand its possible to make your own alterations to it,..... More

Print this item

  How to convert unicode to koi8-r?
Posted by: AlekseyPython - Feb-21-2019, 10:51 AM - Forum: General Coding Help - Replies (5)

Python 3.7.2

I write data to the database, so I want to write lines in a format that has a low weight. One character of the Russian language i..... More

Print this item

  How to check an array exist in a file using Python
Posted by: fitrisibarani - Feb-21-2019, 09:30 AM - Forum: Homework - Replies (17)

I have a txt file like this : A1B2C3D4.8Z
I have an array data : ["A1", "xx", "ss", "11"]

I am going to check each 2 characters from my txt file w..... More

Print this item

  tuple
Posted by: veysel - Feb-21-2019, 09:12 AM - Forum: General Coding Help - Replies (4)

hello everyone, i have q question to you

s=("hello",)


b=s+tuple("veysel",)
print(b)
it prints ('hello', 'v', 'e',..... More

Print this item

  Rev Counter
Posted by: MarioV - Feb-21-2019, 08:35 AM - Forum: Game Development - Replies (1)

Hello,

I have to make a program that looks like car rev counter. When I press key on keyboard(later it will be accelerator pedal), i get feedback ..... More

Print this item

  Data cleaning help
Posted by: ClimbAddict - Feb-21-2019, 04:33 AM - Forum: General Coding Help - Replies (2)

Hi,

I am new to Python and need help with data cleaning.

The objective is to scrapped off tables from pdf file. That has been done with the tabu..... More

Print this item

  Finding the brightness of an image using pygame
Posted by: Zman350x - Feb-21-2019, 02:48 AM - Forum: Game Development - Replies (2)

[font=Arial, Helvetica, sans-serif]As part of my science fair, I need to order images by brightness, so I created this bit of code below:
[python]#im..... More

Print this item

  Most efficient way to define sub keys of a dictionary?
Posted by: wrybread - Feb-20-2019, 11:48 PM - Forum: General Coding Help - Replies (1)

Suppose I have a dictionary named "properties".

properties = {}

And there's a few different items that will be subkeys.

properites["item1"] =..... More

Print this item

  Implementation of Elevator simulation 3D
Posted by: jasiekkm - Feb-20-2019, 10:14 PM - Forum: Game Development - Replies (2)

Hello,
I have to do a project, let's suppose that the 3D elevator simulation.
I want to implement this in our beloved python, my question is what to..... More

Print this item

  Dynamically create functions from Json
Posted by: Clement_2000 - Feb-20-2019, 09:59 PM - Forum: General Coding Help - Replies (5)

Bonjour experts ! Big Grin
It is still for my printer controller project.
I'm now trying to make a lib to get a flexible, and easy tom modify ..... More

Print this item

  Run Python Script From My VPS?
Posted by: digitalmatic7 - Feb-20-2019, 09:58 PM - Forum: General Coding Help - Replies (1)

I have a VPS with CentOS7 / nginx / plesk installed on it. I was wondering how I can use it to run a Python script? Do I have to go through the whole ..... More

Print this item

  Help with homework assignment
Posted by: grayarea3 - Feb-20-2019, 09:32 PM - Forum: Homework - Replies (1)

Below is the assignment:

Create a grocery calculator

It will take in key-value pairs for items and their prices, and return the subtotal and tot..... More

Print this item

  Calculate NDVI
Posted by: Noureddine87 - Feb-20-2019, 08:41 PM - Forum: Data Science - No Replies

Hello
I am new to python.
I am trying to calculate the NDVI of two LANDSAT images with the following code :
[python]
from osgeo import gdal
impor..... More

Print this item

  venv conflict at shell prompt
Posted by: Skaperen - Feb-20-2019, 08:00 PM - Forum: News and Discussions - Replies (3)

in the documentation:
[quote]
Activating the virtual environment will change your shell’s pr..... More

Print this item

  My code is taking longer time to give result
Posted by: rajeshwin - Feb-20-2019, 07:16 PM - Forum: General Coding Help - Replies (4)

I am newbie to Python and tried to write a code to get smallest positive number that is evenly divisible by all of the numbers from 1 to 20. I used th..... More

Print this item

  running python script from shell invoked with os.system("x-terminal-emulator -e /bin/
Posted by: markhaus - Feb-20-2019, 07:14 PM - Forum: General Coding Help - Replies (2)

I have the following code in a file "hello.py":


#!/usr/bin/python3

import os

import time
os.system("x-terminal-emulator -e /bin/bash")
..... More

Print this item

  ARIMA.Fit memoryError
Posted by: wissam1974 - Feb-20-2019, 06:45 PM - Forum: Data Science - Replies (2)

hi All python Forum experts
i am using the software pyCharm2018.1.1

i have tried to build ARIMA model in python, my model has been identified by t..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Unable to resolve FileNot... 4 hours ago llarkin6 noisefloor General Codin...
  Integer Factorization Too... 5 hours ago fosuwxb fosuwxb Code sharing
  Comparing 2 100GB Drives/... 9 hours 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
  [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...
Most views
  The best Prog... 577306
  Tutorial Requ... 500539
  Web Scraping ... 440978
  Newbie with P... 385011
  New Users Int... 369467
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+ 12090
buran 8176
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Williamcaurb Today
sophielane Today
Oscar0057 Today
Cromulent Today
PhamMaria Today

User Panel Messages

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