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,560

Full Statistics

Online Users
There are currently 34 online users.
» 1 Member(s) | 28 Guest(s)
Bing, AOL, Mojeek, AOL, Google, Larz60+

Latest Threads
Webscrapping sport bettin...
Forum: Web Scraping & Web Development
Last Post: Williamcaurb
19 minutes ago
» Replies: 5
» Views: 13,783
Looking for constructive ...
Forum: News and Discussions
Last Post: sophielane
23 minutes ago
» Replies: 2
» Views: 865
Maximizing Code Quality T...
Forum: Web Scraping & Web Development
Last Post: sophielane
25 minutes ago
» Replies: 0
» Views: 1
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
1 hour ago
» Replies: 6
» Views: 699
Integer Factorization Too...
Forum: Code sharing
Last Post: fosuwxb
2 hours ago
» Replies: 0
» Views: 28
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
6 hours ago
» Replies: 8
» Views: 430
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Yesterday, 06:39 PM
» Replies: 7
» Views: 2,816
My goal to be hired worki...
Forum: News and Discussions
Last Post: Larz60+
Sep-27-2025, 11:58 PM
» Replies: 1
» Views: 679
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,213
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,784

 
  Cant Append a word in a line to a list err "str obj has no attribute append
Posted by: Sutsro - Apr-22-2020, 11:11 AM - Forum: General Coding Help - Replies (2)

Hey everyone,

I am trying to get every word in line to a list however i am getting error " AttributeError: 'str' object has no attribute 'append'"...... More

Print this item

  Sorting digits in a mixed string
Posted by: snorri - Apr-22-2020, 10:56 AM - Forum: Homework - Replies (1)

Hello.
In a mixed string(digits and English alphabet) sort only the digits.
Example:
"3b2c1" => "1b2c3"
"7Mkx1Intv2n5D" => "1Mkx2Intv5n7D"

I ca..... More

Print this item

  Openpyxl
Posted by: PTPeter - Apr-22-2020, 09:35 AM - Forum: General Coding Help - Replies (3)

Hello, this is my first post.

A tutorial I am following tells me to type this code:

[python]
import openpyxl

wb = openpyxl.load_workbook('marks..... More

Print this item

  string indices must be integers
Posted by: constantin01 - Apr-22-2020, 09:01 AM - Forum: General Coding Help - Replies (6)

So, I have:

[python]data = json.loads(requests.get(url).text)
print(type(data))
print(data[0])

<class 'list'>
{'sentence': ['what', 'is', 'a'..... More

Print this item

  Lists first item is a number however i cant compare it with an int getting syntax err
Posted by: Sutsro - Apr-22-2020, 08:45 AM - Forum: General Coding Help - Replies (4)

Hello everyone,

when i try to compare list first element i am getting a syntax error. "if satırsayısı2=isimsatırlistesi[0]" this list is made of "..... More

Print this item

  Help Needed
Posted by: Sinfulwinner - Apr-22-2020, 08:09 AM - Forum: General Coding Help - Replies (1)

Hey All, Trying to get the below script to allow a user to input a storeID number; which then looks up the coordinates and inputs them into the variab..... More

Print this item

  Progressbar value update issue
Posted by: Roshan - Apr-22-2020, 08:01 AM - Forum: GUI - Replies (7)

Hi

i have one list .

I want to update Progressbar from list elements.

# this code works
self.prograssBar1["value"] = 12
..... More

Print this item

  Python v MatLab for graphs and plots
Posted by: CynthiaMoore - Apr-22-2020, 07:54 AM - Forum: General Coding Help - Replies (4)

I need to generate some graphs of data from an Excel sheet. I installed a trial version of MatLab and played with it a bit. It can certainly do what I..... More

Print this item

  [Project] bot for web game
Posted by: zarize - Apr-22-2020, 07:51 AM - Forum: General Coding Help - No Replies

Hi guys,

I was thinking about project which could give me experience, on which i could learn a lot.
Beside this, project must be also interesting, so..... More

Print this item

  Python: Call function with variabele? Ending in error.
Posted by: efclem - Apr-22-2020, 07:44 AM - Forum: General Coding Help - Replies (5)

Hi all,
I am a beginner in Python and I am trying to create a script that is login to all kind of different devices (Storage, server, switches) and c..... More

Print this item

  how to update label text from list
Posted by: Roshan - Apr-22-2020, 07:26 AM - Forum: GUI - Replies (8)

Hi

I want to update 5 different label value from list items.

I am following below code.

[python]
self.dLabel1.configure(text = f"button clic..... More

Print this item

  How to attach images to a thread
Posted by: CynthiaMoore - Apr-22-2020, 07:22 AM - Forum: Board - Replies (6)

I wanted to ask a question about generating a graph. I have an example in a jpg file. But the only way I can see to attach it to the post is if I have..... More

Print this item

  Booleans in Python
Posted by: azure - Apr-22-2020, 07:16 AM - Forum: Homework - Replies (6)

Hi all,

I am trying to understand how to code the exercise shown below but I am afraid I am stuck.
I guess I am still a newbie in Python.
Can so..... More

Print this item

  class method on two object
Posted by: gabejohnsonny21 - Apr-22-2020, 06:15 AM - Forum: Homework - Replies (4)

[python]
class Rectangle():
def __init__(self, x, y):
self.x = x
self.y = y

def dRec_area(self1, self2):
area ..... More

Print this item

  QComboBox for PyQt code
Posted by: gvin47 - Apr-22-2020, 04:42 AM - Forum: GUI - Replies (3)

I have Stopwatch program with Current Time, Split Time and Lap Time display.
I have replaced QLable with QComboBox for Lap Time to see all the Laps i..... More

Print this item

  embedding python
Posted by: Skaperen - Apr-22-2020, 03:19 AM - Forum: News and Discussions - No Replies

i want to use python as a scripting language in a new app i'm developing. what is the best way to do that? is there a tutorial for it?

Print this item

  Best way to iterate through output to get the status of devices
Posted by: idkwhatimdoing - Apr-22-2020, 02:05 AM - Forum: General Coding Help - No Replies

I'm using python 2.7.5 I currently using subprocess to run a local command and I'm trying to iterate over a list to get the status of each device.

..... More

Print this item

  Using an integer to manipulate a string/text variable
Posted by: rexyboy2121 - Apr-22-2020, 01:23 AM - Forum: Homework - Replies (1)

Write a function that consumes a non-negative integer k and prints a k-size diamond. A k-size diamond consists of a top, a middle and a bottom. The mi..... More

Print this item

  Data Frequency Conversion
Posted by: Zankawah - Apr-21-2020, 10:48 PM - Forum: Data Science - Replies (7)

Hi,
I am trying to resample data by converting them from annual to monthly, quarterly etc. As indicated below, I have been able to import the data w..... More

Print this item

  How to solve difficult non-linear equations?
Posted by: shreeniket - Apr-21-2020, 10:24 PM - Forum: General Coding Help - Replies (3)

I'm a beginner and trying to solve this system of non-linear equations, would appreciate any guidance. The attached image shows the system of equation..... More

Print this item

  tkinter
Posted by: BigMoose - Apr-21-2020, 10:14 PM - Forum: GUI - Replies (2)

Dear Forum Users

I want to change the image of an LED from white to another color using Python3 code using a tkinter GUI. I understand how to do t..... More

Print this item

  How to generate a log in a list style?
Posted by: wagnergt12 - Apr-21-2020, 08:49 PM - Forum: General Coding Help - Replies (5)

Hello Guys, I have a code for bkp my network devices, I have placed some improvement to generate a log for document the failed devices, so I can check..... More

Print this item

  from module import function
Posted by: krishanu21 - Apr-21-2020, 07:58 PM - Forum: General Coding Help - Replies (4)

[python]
def fcn_a():
print('function A module name=' + __name__, ';')
from test3 import fcn_b

def fcn_b():
print('function B modul..... More

Print this item

  a file-like class implementation
Posted by: Skaperen - Apr-21-2020, 07:55 PM - Forum: News and Discussions - Replies (2)

does anyone here have an actual working implementation of a file-like class, especially with support for write(), that they can share? based on stuff..... More

Print this item

  Pointer in the right direction?
Posted by: Viking - Apr-21-2020, 07:42 PM - Forum: General Coding Help - Replies (5)

Hey

I have created a small quiz to learn some Python. I would like to figure out how to make the code more effective.

My solution now would be..... More

Print this item

  Getting error while installing packages using pip
Posted by: Shreya - Apr-21-2020, 07:29 PM - Forum: General Coding Help - Replies (2)

Hi All,

I am new to this language. I am trying to install numpy package using pip from virtual env.
But I am getting the error.

I checked the p..... More

Print this item

  Format SQL Query Output
Posted by: phillyfa - Apr-21-2020, 07:23 PM - Forum: General Coding Help - Replies (2)

I'm selecting data from a table and returning all records. However, the records are being returned with a blank space separator instead of a comma. ..... More

Print this item

  NameError: name 'cross_validation' is not defined
Posted by: tmhsa - Apr-21-2020, 06:32 PM - Forum: General Coding Help - Replies (6)

Hi there, please I am having an issue with the following code. I checked online including stack-overflow but no good response to this case.
Imports:..... More

Print this item

  Python Consecutive characters
Posted by: vijju56 - Apr-21-2020, 04:59 PM - Forum: General Coding Help - Replies (4)

If a string is given, substitute the character with number of times that character is repeated only if the character is repeated more than three times..... More

Print this item

  Need help working with two excel file with different formats
Posted by: mikey3580 - Apr-21-2020, 04:41 PM - Forum: General Coding Help - Replies (1)

Like many one here I am new to python and would greatly appreciate any help.
I need some guidance on how to create an excel output off of two diffe..... More

Print this item

  Clone GitHub to Local
Posted by: sridhar - Apr-21-2020, 04:18 PM - Forum: General Coding Help - Replies (2)

How do I clone entire Repository of GitHub in my local machine in python way ?

Print this item

  Newbie on Python syntax
Posted by: rud0lp20 - Apr-21-2020, 03:59 PM - Forum: General Coding Help - Replies (6)

Hi guys,

Can you suggest a better documentation/site that can help me on syntax?
currently I have this issue where on windows its working but when I ..... More

Print this item

  New to Python
Posted by: simonsadiq - Apr-21-2020, 03:05 PM - Forum: General Coding Help - Replies (3)

I'm new to Python; from a tutorial I got the following lesson for beginners:
"By default, each print statement prints text in a new line. If we want ..... More

Print this item

  python display with '\\' when prints with key-value in dictionary
Posted by: maiya - Apr-21-2020, 02:09 PM - Forum: General Coding Help - Replies (12)

#!/bin/python

dict = {
   'name': ""
}

dict['name'] = "{}".format("\python")
print(dict)
here is the output:
{'name': ..... More

Print this item

  edx exercise
Posted by: timthebouncer - Apr-21-2020, 12:58 PM - Forum: Homework - Replies (2)

Hello guys, I'm facing some logic problems.
I barely know how to set max/min for order_weight and give order_price a variable then multiply it as wel..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Webscrapping sport bettin... 19 minutes ago KoinKoin Williamcaurb Web Scraping ...
  Looking for constructive ... 23 minutes ago decuser sophielane News and Disc...
  Maximizing Code Quality T... 25 minutes ago sophielane sophielane Web Scraping ...
  Unable to resolve FileNot... 1 hour ago llarkin6 noisefloor General Codin...
  Integer Factorization Too... 2 hours ago fosuwxb fosuwxb Code sharing
  Comparing 2 100GB Drives/... 6 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
Most views
  The best Prog... 577301
  Tutorial Requ... 500514
  Web Scraping ... 440973
  Newbie with P... 385005
  New Users Int... 369446
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 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