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 45 online users.
» 0 Member(s) | 41 Guest(s)
Bing, AOL, Google, 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

 
  how to combine mumtiple for loops in single loop
Posted by: anna - Mar-01-2018, 11:43 AM - Forum: General Coding Help - Replies (26)

[python]from easysnmp import Session
import time
start = time.time()
host = '10.10.10.1'
intnames = []
intOpes = []
intAdm = []
session = Se..... More

Print this item

  Dynamic Polar Plor
Posted by: mounikapaladugu - Mar-01-2018, 09:36 AM - Forum: GUI - Replies (1)

Hello,

I am having two data values. One is of distance measured using UltraSonic sensor and the other is angle, varied using Stepper motor. Now, I ..... More

Print this item

  Python Challenge online - 30 Questions
Posted by: JulienC - Mar-01-2018, 09:28 AM - Forum: News and Discussions - Replies (1)

Hi guys,

If you want to test your skills and have fun you can take part at the Python Challenge organized by Cisco.

Arrow https://editx.eu..... More

Print this item

  count string occurrences of 2nd file in lines of first
Posted by: showkat - Mar-01-2018, 06:03 AM - Forum: General Coding Help - Replies (1)

I need to generate permutation of some words (A T G C ) actually nucleotides for di-composition (eg AA AT AG AC), tri-composition (AAA AAT AAC AAG), t..... More

Print this item

  break Statements and else Clause on Loops
Posted by: Phytonnewbie - Mar-01-2018, 03:53 AM - Forum: General Coding Help - Replies (2)

Hello Python Masters,
I am an absolute beginner in Phyton, trying to teach myself, and first time member of this forum. Pardon me for asking for help..... More

Print this item

  Textblob issue on 3.5
Posted by: Sebt1890 - Mar-01-2018, 03:20 AM - Forum: General Coding Help - Replies (2)

Hey everyone!

I have to use Textblob to translate a sentence to either Spanish or Arabic.

Before I begin, I am running Ubuntu and boot up pytho..... More

Print this item

  return variable in func
Posted by: mepyyeti - Mar-01-2018, 02:07 AM - Forum: General Coding Help - Replies (1)

[python]
#!usr/bin/env python3

#ufunc0.py

import sys

def word2(a):
a1= a+a
print(a1)
return a1
while True:
move = input('\'g\' to s..... More

Print this item

  string format
Posted by: ShaneP - Mar-01-2018, 02:01 AM - Forum: General Coding Help - Replies (1)

I'm pretty new to python & programming in general. I cant figure out how to print gold as a string.

[python] class Item:
def __init__(self, na..... More

Print this item

  lists, strings, and byte strings
Posted by: Skaperen - Mar-01-2018, 01:44 AM - Forum: General Coding Help - Replies (2)

if i want to convert a string to a list then back, again, it's rather easy. if i want to do the same with a byte string it's not. anyone know a way ..... More

Print this item

  Executing DOS programs within Python
Posted by: mdsi2000 - Feb-28-2018, 10:25 PM - Forum: General Coding Help - Replies (4)

Hello Group!
I have been a programmer for 30 years (yea an old timer) I'm new to Python and I'm working on a project to convert a software from MS DO..... More

Print this item

  Homework: Invalid syntax using if statements
Posted by: chehortop - Feb-28-2018, 10:25 PM - Forum: Homework - Replies (3)

So I'm doing a homework assignment where we are meant to make a program that asks the user their name, age and what computer they want to buy. Once th..... More

Print this item

  List of lists
Posted by: MarkLogan - Feb-28-2018, 09:34 PM - Forum: Homework - Replies (3)

Hi, I'm having trouble with this : I have a txt files with combinaison of two number. Like this :
0 2
0 3
1 0
1 4
1 6
1 7
1 9
2 3
2 6
2 9..... More

Print this item

  Trying to invert DICOM image with Python 3.6
Posted by: newmanf - Feb-28-2018, 08:38 PM - Forum: General Coding Help - Replies (1)

I'm trying to INVERT a DICOM image in Python 3.6. I've tried this (and many others) pieces of code:

[python]
#from PIL import Image
import matplo..... More

Print this item

  Pandas/Excel, reading from one column writing back to another...
Posted by: williamlombard - Feb-28-2018, 07:56 PM - Forum: Data Science - Replies (1)

Hi Guys

Can you help me process the data in a spreadsheet, in particular to read values in one column apply some functions and then write the results..... More

Print this item

  if else with comparison >= does not work
Posted by: angelina7382 - Feb-28-2018, 07:20 PM - Forum: General Coding Help - Replies (7)

[python]
hrs = float(input('Enter Hours:'))
rate = float(input ('Enter Rate:'))
h = float(hrs) - 40
r = float (rate) * 1.5
def computepay(h,r):
..... More

Print this item

  parse date/time
Posted by: bb8 - Feb-28-2018, 06:55 PM - Forum: General Coding Help - Replies (8)

i need to parse date/time stamps of this format:

Oct 4 13:27:52 2003
i also need to handle leap years.

what can i use for this..... More

Print this item

  List 3 dimensions reference does not work
Posted by: Mario793 - Feb-28-2018, 04:39 PM - Forum: General Coding Help - Replies (1)

Hello, I am currently working on a program to plot some data in Python, and I have a little problem with referencing some values from an array of thre..... More

Print this item

  list syntax
Posted by: blazersnake - Feb-28-2018, 04:35 PM - Forum: General Coding Help - Replies (6)

Hi, I need to find the appropriate list operations.

example:

x = [1, 2, 3]
y = x
y[1] += 2
print(x)
>> [1, 4, 3]

How can I have y become ..... More

Print this item

  Set input text from button
Posted by: gio123 - Feb-28-2018, 03:36 PM - Forum: GUI - Replies (1)

Hi All,
I need to get the text of the textbox (ScrolledText) by pressing the "Find" button. At the moment the command print the text entered but I ne..... More

Print this item

  Class Modules, and Passing Variables: Seeking Advice
Posted by: Robo_Pi - Feb-28-2018, 02:48 PM - Forum: General Coding Help - Replies (21)

Class Modules, and Passing Variables: Seeking Advice

Introduction
Hello, this is my first post and I'm just learning..... More

Print this item

  pandas convert date/time to week
Posted by: okl - Feb-28-2018, 02:04 PM - Forum: Data Science - Replies (3)

Hi

Below error when trying to convert date/time to week


data.columns
data.index
data['DATECREATED'].dt.week
[error]
-----------..... More

Print this item

  TypeError: list indices must be integers or slices, not float
Posted by: RedSkeleton007 - Feb-28-2018, 12:27 PM - Forum: General Coding Help - Replies (1)

Why can't I just get two decimal places to the right of the decimal point?
Or are the circumstances with list indexes different:
[python]
#!/usr/bi..... More

Print this item

  NoneType allways a problem
Posted by: mariolopes - Feb-28-2018, 12:07 PM - Forum: General Coding Help - Replies (1)

Hi
I got a problem
I use the following code to get the elements from one webpage. The problem is I can't save the value if the item is none
The p..... More

Print this item

  Multi-Threaded Alexa Website Ranker Problem - All Threads Doing Same Task
Posted by: digitalmatic7 - Feb-28-2018, 09:21 AM - Forum: Web Scraping & Web Development - No Replies

I've created a very simple bot, and I'm having trouble threading it.

It loads a list of URLs from links.csv (sample list here: ..... More

Print this item

  question about train_test_split()
Posted by: fadi - Feb-28-2018, 08:14 AM - Forum: General Coding Help - Replies (3)

Hello

I using the train_test_split function in the following code

[python]

# Load the data set for training and testing the logistic regres..... More

Print this item

  How to read filename and specific cell value from multiple csv
Posted by: Prince_Bhatia - Feb-28-2018, 08:04 AM - Forum: General Coding Help - No Replies

hi,

i have muliple csv's , i am writing a module that can read multiple csv's and take one cell position and pick it's value and append it to new ..... More

Print this item

  some advice
Posted by: garikhgh0 - Feb-28-2018, 06:48 AM - Forum: GUI - Replies (2)

Hi. please advice me which widgets to use tkinter or PyQt for creating applications for windows. in the application must be used some data tables, but..... More

Print this item

  Get Data from QComboBox
Posted by: Ferris - Feb-28-2018, 04:59 AM - Forum: GUI - No Replies

Good day to everyone!
How can I get value of QComboBox? Cause from currentText() I only get my first value. In the internet i found examples where va..... More

Print this item

  Saving data into .mat (Matlab Fiile)
Posted by: Tulo_Stone - Feb-28-2018, 12:57 AM - Forum: Data Science - No Replies

Hi All,

I have a series of text files with data and I I have written this code below to extract only information in these 1 - 4 columns
[python]..... More

Print this item

  jsonstr.format()
Posted by: Skaperen - Feb-28-2018, 12:53 AM - Forum: General Coding Help - Replies (7)

the .format() method does not always work with JSON strings. what do you guys use instead?

Print this item

  Nested Loop multiplication table
Posted by: SushiRolz - Feb-28-2018, 12:47 AM - Forum: Homework - Replies (3)

I am trying to recreate a multiplication table, but i am stuck on where to put what code where.
Here are the specifications for it:

Write a prog..... More

Print this item

  Program excercise
Posted by: SushiRolz - Feb-28-2018, 12:43 AM - Forum: Homework - Replies (1)

Write a program that draws a house by printing characters to the screen. This program should have main, PrintGround, PrintRoof, and PrintWall function..... More

Print this item

  curses.initscr doesn't work
Posted by: zaphod424 - Feb-28-2018, 12:34 AM - Forum: General Coding Help - Replies (3)

so Ive written a program, using the curses module to open a window, however when I run it I get an error message:



[error]Traceback (most recent..... More

Print this item

  Convert JSON to CSV
Posted by: Linuxdesire - Feb-27-2018, 10:07 PM - Forum: General Coding Help - Replies (4)

I have been searching google and working on converting a JSON to a CSV but have not been successful. I call an API from newsapi.org and I can get the ..... More

Print this item

  Homework help?
Posted by: manualbeatdrop - Feb-27-2018, 08:51 PM - Forum: Homework - Replies (1)

Hiya guys. I'm a noob and really need some help. So I was told to code something in python ver.3.4.1 and basically you input an age (12-18) and It the..... 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