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,941
» Latest member: Noya_Yonatan
» Forum threads: 38,722
» Forum posts: 175,510

Full Statistics

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

Latest Threads
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: bowlofred
2 hours ago
» Replies: 2
» Views: 144
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,379
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 803
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Sep-19-2025, 12:30 PM
» Replies: 1
» Views: 3,655
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,152
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,663
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,477
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,668
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,593
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,769

 
  Code to monitoring IP numbers
Posted by: omar - Feb-27-2018, 08:19 PM - Forum: Networking - Replies (5)

I want some suggestions for some code I want to write.

Let's say I have 10 different logins on my PC.
I want to use my mobile to login and connect..... More

Print this item

  Word co-occurrence matrix for a string (NLP)
Posted by: JoeB - Feb-27-2018, 07:15 PM - Forum: General Coding Help - Replies (2)

I need to create a word co-occurrence matrix that shows how many times one word in a vocabulary precedes all other words in the vocabulary for a given..... More

Print this item

  PYTHON - send email with attachment Error
Posted by: PYTHONDUDE - Feb-27-2018, 06:52 PM - Forum: General Coding Help - Replies (1)

I came up with the following python to send an email with attachment. the text file is located c:/python/20180227.txt (the dated file is changed dai..... More

Print this item

  Converting Decimal to Binary
Posted by: emerger - Feb-27-2018, 06:40 PM - Forum: General Coding Help - Replies (1)

Hello.
My instructor gave us this code to understand. I think I understand what each line does except one line below in bold. Will someone please ex..... More

Print this item

  Am I going about this wrong?
Posted by: Oliver - Feb-27-2018, 04:31 PM - Forum: Web Scraping & Web Development - No Replies

I have a Flask Web Service.

In one of the POST methods, I read and build a SVC classifier. It works! Hurray.

----

What I was thinking was tha..... More

Print this item

  Guido van Rossum: BDFL Python 3 retrospective
Posted by: snippsat - Feb-27-2018, 02:36 PM - Forum: News and Discussions - Replies (13)

Guido van Rossum: BDFL Python 3 retrospective

Print this item

  Write selected (random) columns to output-file
Posted by: anjohepa - Feb-27-2018, 02:19 PM - Forum: General Coding Help - No Replies

Hello everyone,

I am about to take a random sample (n = 2) from a tab-separated "ran.txt"-file displayed right below, but I only want to print the ..... More

Print this item

  Beautifulsoap can't get page title
Posted by: mariolopes - Feb-27-2018, 11:53 AM - Forum: Web Scraping & Web Development - Replies (2)

Hi
I can't get the tilte of the following page
http://cheirabem.com/mostraperfumes.aspx...Balenciaga
here is my code:
[python]
from bs4 impor..... More

Print this item

  Router interface status through SNMP - suggestion required for improvement.
Posted by: anna - Feb-27-2018, 11:10 AM - Forum: General Coding Help - No Replies

Hi All,

This script is polling Router/Switch interfaces through SNMP, any suggestion to reduce code line, specially function calling.

[python]#!..... More

Print this item

  Need help for Atom IDE
Posted by: sylas - Feb-27-2018, 08:41 AM - Forum: General Coding Help - Replies (6)

Hi all ! I installed Atom. I created a project. I see all files. But I am unable to edit and then run files. Is there something missing ?? Thanks

Print this item

  Dynamic updating of a nested dictionary in multiprocessing pool
Posted by: Mil_K - Feb-27-2018, 08:03 AM - Forum: Data Science - Replies (1)

I have written a simple code to understand how lack of communication between the child processes leads to a random result when using [inline]multiproc..... More

Print this item

  copy files from one destination to another by reading filename from csv
Posted by: Prince_Bhatia - Feb-27-2018, 07:19 AM - Forum: General Coding Help - Replies (3)

hi,

i want to move several file mentioned in csv to another folder path which is mentioned in code

i have several pdf's mentioned in the attach..... More


Attached Files

.csv   maharera.csv (Size: 11.41 KB / Downloads: 752)
Print this item

  Time Difference in Epoch Microseconds then convert to human readable
Posted by: firesh - Feb-27-2018, 06:39 AM - Forum: General Coding Help - Replies (4)

hi i have 2 epoch microseconds and i would like to know the datetime difference then print out the difference with human readable.

Epoch Microsecond..... More

Print this item

  how to install python on linux
Posted by: manchun - Feb-27-2018, 06:18 AM - Forum: News and Discussions - Replies (5)

I want to learn python. Can you help me.

Print this item

  Linear Fibonacci sequence
Posted by: Tawnwen - Feb-27-2018, 06:05 AM - Forum: Homework - Replies (1)

Currently learning Python recursion and stuck on how to write linear-time fib function:

[python]
def goodfib(k):
if k == 0: return 0, 0, 1
..... More

Print this item

  a script i am thinking about creating
Posted by: Skaperen - Feb-27-2018, 06:03 AM - Forum: News and Discussions - Replies (2)

i am thinking about writing a script that runs a specified command with arguments passed to it while capturing stdout and stderr separately to prefix ..... More

Print this item

  Step -1
Posted by: Upandon - Feb-27-2018, 04:58 AM - Forum: General Coding Help - Replies (2)

I just need help in understanding what to do after I download Python to my computer. My command script won't find Python and help files aren't working..... More

Print this item

  Python installation difficult
Posted by: rajamugavai - Feb-27-2018, 04:55 AM - Forum: General Coding Help - Replies (2)

Hi

I have installed Python 3.6 in Windows 7 32 bit.. After the installation, Python unable to open in my system. The following error is displayed o..... More

Print this item

  Can anyone Please help on fixing this python code to connect and save things on sqlit
Posted by: Roscoes - Feb-27-2018, 04:51 AM - Forum: General Coding Help - Replies (2)

[python]import os, sys
import sqlite3
from enum import Enum

class Listkeeper(object):
def __init__(self):
self.file = str()
..... More

Print this item

  converting array of things to byte stream to send
Posted by: bigjoey - Feb-27-2018, 04:14 AM - Forum: General Coding Help - Replies (2)

Hi all. This may be a stupid question, but I find what I am trying to do quite confusing. Im receiving a GPS sentence from another server, and I woul..... More

Print this item

  joined ranges
Posted by: Skaperen - Feb-27-2018, 02:23 AM - Forum: General Coding Help - Replies (4)

given 4 ints which define 2 ranges, i can do

foo = [x for x in range(a,b)]+[x for x in range(c,d)]
but it would be nice if there was a ..... More

Print this item

  Finding the average of numbers in a txt file
Posted by: piday - Feb-27-2018, 01:24 AM - Forum: Homework - Replies (1)

This is the assignment: Write a program that read numbers from a text file named "data.txt" and store the average in a second file named "average.txt"..... More

Print this item

  BS4 Not Able To Find Text In CSS Comments
Posted by: digitalmatic7 - Feb-26-2018, 11:35 PM - Forum: Web Scraping & Web Development - Replies (4)

Random example:

[python]
import requests
from bs4 import BeautifulSoup
import re

scrape = requests.get('http://www.seacoastonline.com/news/2..... More

Print this item

  extract data inside a table from a .doc file
Posted by: aster - Feb-26-2018, 11:28 PM - Forum: General Coding Help - Replies (12)

i have more then 4000 hatefull Microsoft Office Word .doc files from which i should extract some data (both numbers and words but really in most cases..... More

Print this item

  Dynamic Formatting of String
Posted by: mikera1979 - Feb-26-2018, 11:20 PM - Forum: General Coding Help - Replies (2)

I'm having some issues figuring out a way to transform a random number, that ranges from 2-5 characters in length. I'm trying to format the first 3 ch..... More

Print this item

  Selenium Data Scrubbing - Need Some Help
Posted by: HalPlz - Feb-26-2018, 10:14 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello all,

I'm attempting to populate a spreadsheet with 2 data points from this website: https://activeshare.info/

But I can't seem to get past..... More

Print this item

  Reduce the code for if statements
Posted by: chris0147 - Feb-26-2018, 10:03 PM - Forum: General Coding Help - Replies (8)

Hi,

I need your help with my current code. I am working on the if statements to check on the CurrentRowX value and the CurrentWidth value to see if..... More

Print this item

  serial write can't do it myself
Posted by: ricardons - Feb-26-2018, 05:46 PM - Forum: General Coding Help - Replies (4)

hello I'm having a lot of difficult to connect to serial port

I've a device that communicates by serial (Nextion HMI) with my raspberry pi via UART

..... More

Print this item

  Binary for Decimal Numbers
Posted by: emerger - Feb-26-2018, 05:08 PM - Forum: General Coding Help - Replies (1)

Hello. Am taking a class and we had to convert decimal numbers to binary. While trying to understand the code to do this, I found out that all numbe..... More

Print this item

  How to get CPU and RAM usage using python in windows?
Posted by: psvramaraju - Feb-26-2018, 02:12 PM - Forum: General Coding Help - Replies (1)

I am working to get CPU and RAM usage for windows through python from many days but unable to find proper solution. Can someone help me in getting thr..... More

Print this item

  Panda Dataframe
Posted by: garikhgh0 - Feb-26-2018, 10:58 AM - Forum: GUI - Replies (2)

Hi.

Is there any possibility to add Dataframe(table) of Panda on a GUI.

Print this item

  return dict in tuple
Posted by: bb8 - Feb-26-2018, 07:37 AM - Forum: General Coding Help - Replies (6)

i return something like this from function:

def f():
    d = dict()
    # fill dict
    d["s"]
    return (1, d)
then:
[pyth..... More

Print this item

  Loop issue
Posted by: onenessboy - Feb-26-2018, 06:45 AM - Forum: General Coding Help - Replies (11)

Dear experts,

need some help

I have written following code for retrieving server node status.. However i am facing issue with looping here...
..... More

Print this item

  testing if a character in a string is an intended one
Posted by: Skaperen - Feb-26-2018, 03:21 AM - Forum: General Coding Help - Replies (2)

previously i had asked which was better: word[0] in ('w','x','y','z') vs word[0] in 'wxyz'. but now i have a new va..... More

Print this item

  Working with lists homework
Posted by: Otaku2 - Feb-26-2018, 02:00 AM - Forum: Homework - Replies (7)

Define 2 lists. The first one must contain the integer values 1, 2 and 3 and the second one the string values a, b and c. Iterate through both lists t..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Using a For Loop to subtr... 2 hours ago Anunderling bowlofred General Codin...
  403 Error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... 09-19, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
Most views
  The best Prog... 576510
  Tutorial Requ... 498418
  Web Scraping ... 440399
  Newbie with P... 384295
  New Users Int... 367438
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+ 12087
buran 8175
snippsat 7368
deanhystad 6892
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Noya_Yonatan Yesterday
Saipython555 Yesterday
Anunderling Yesterday
Monir Yesterday
atylerfraces2254 09-20

User Panel Messages

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