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,980
» Latest member: Joliekeva
» Forum threads: 38,732
» Forum posts: 175,564

Full Statistics

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

Latest Threads
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
2 hours ago
» Replies: 4
» Views: 1,962
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Yesterday, 07:43 AM
» Replies: 2
» Views: 390
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:21 AM
» Replies: 2
» Views: 1,018
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,075
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 750
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,056
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,497
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,075
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,531
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,415

 
  Retrieve protocol in lower case
Posted by: Variables - May-02-2019, 03:58 AM - Forum: General Coding Help - Replies (1)

Hey guys, im trying to retrieve the protocol, but comes up in Uppercase, i need to retrieve it in lower case.
This is my code.

[python]
protocol..... More

Print this item

  Populating a timetable with subjects
Posted by: brittocj - May-02-2019, 02:51 AM - Forum: General Coding Help - Replies (1)

Hello All,

We have to populate a timetable with subjects. What would be the best approach?

In our sample timetable there are 25 hours (keys), al..... More

Print this item

  Having 4 players(Sprites) all being able to jump
Posted by: ElijahCastle - May-02-2019, 01:49 AM - Forum: Game Development - Replies (5)

I'm new to programming and I'm barely starting. I'm trying to make a 4 player local Co-op fighting game to play with my friends and family so we could..... More

Print this item

  How to get the picture from gender dataset
Posted by: vokoyo - May-01-2019, 11:18 PM - Forum: General Coding Help - Replies (1)



May I know how to modify my Python programming thus it will be get the same result as refer to the image file?





[python]
import ..... More


Attached Files

Thumbnail(s)
   

.pdf   Assessing Feature with Random Forests.pdf (Size: 163.92 KB / Downloads: 476)
.py   My Python.py (Size: 933 bytes / Downloads: 412)
Print this item

  Counting words in the last line of a file
Posted by: Drone4four - May-01-2019, 09:29 PM - Forum: General Coding Help - Replies (15)

How do I count how many words there are in the last line of a file?

Here are the contents of the text file:

[quote]Welcome to your First Exam Re..... More

Print this item

  Extract of matrix subpart using a deep copy
Posted by: paul18fr - May-01-2019, 09:17 PM - Forum: Data Science - Replies (2)

Hi,

I remember that in Python "A = B" corresponds to a "shallow" copy; in other word if I change any cell in B, then the same cell is modified in A..... More

Print this item

  Python script that calls jamfHelper binary
Posted by: kennethdean2010 - May-01-2019, 08:43 PM - Forum: General Coding Help - Replies (19)

Hi I have a python script I am using to update my Macbooks at work that calls the jamfBinary to display a hud that allows the user to defer updates. ..... More

Print this item

  How to I define a variable between strings in telnetlib write?
Posted by: Fez - May-01-2019, 08:36 PM - Forum: General Coding Help - Replies (2)

How to I use a variable in telnetlib write? I can get connected no problem. I am new to python.
[python]for line in ipaddress:

Host=line.strip(..... More

Print this item

  Welcome back link + Avatar image change.
Posted by: MvGulik - May-01-2019, 07:46 PM - Forum: Board - Replies (2)

While thinking of retrying out this forum again (after some false start some time ago), I'm running into some questions.

When I click on the..... More

Print this item

  Print to Text file in Python 3
Posted by: iteachpc - May-01-2019, 06:04 PM - Forum: General Coding Help - Replies (2)

How do I save the values a variable to a text file in Python 3? i.e. my_varialbe = 'This is the text content" write my_variable to my_variable.txt Tha..... More

Print this item

  Iterating list of oredereddict for creating new list of ordereddict
Posted by: babypython - May-01-2019, 05:31 PM - Forum: General Coding Help - Replies (7)

I have a list of ordereddict as follows
[python]OrderedDict([('Numbers', '15'), ('FirstName', 'John'), ('SecondName', 'Raul'), ('MiddleName', 'Kyle')..... More

Print this item

  Having trouble updating the text in a label
Posted by: microphone_head - May-01-2019, 05:21 PM - Forum: GUI - Replies (3)

Hi all,

Having trouble updating the text in a label Wall .

I've created a tkinter window and created an update routine, but its not obvious ..... More

Print this item

  Python, flask, Django
Posted by: Ecniv - May-01-2019, 03:51 PM - Forum: Web Scraping & Web Development - Replies (5)

Hi
I posted before about a way of using python, via IIS, to give out html pages.
I was advised it is much better to use Flask, so I have been tryin..... More

Print this item

  LINK
Posted by: Gabriela - May-01-2019, 02:04 PM - Forum: Web Scraping & Web Development - Replies (3)

SOMEONE WHO CAN HELP ME HOW TO CREATE A WEB LINK TO POWER WITH THAT LINK BY INTERNET AND IN PHONE

Print this item

  Computational linguistic program - Need some help
Posted by: Antoine - May-01-2019, 12:05 PM - Forum: Homework - Replies (4)

Hello,
I am a student in linguistic from France. So excuse me if my english is perfectible.
I follow a course in computational linguistic and I have..... More

Print this item

  Tutorial for Python, Flask > data into a form
Posted by: Ecniv - May-01-2019, 11:27 AM - Forum: Tutorial Requests and Submissions - Replies (1)

Hi

I'd like a tutorial on how to use a flask basis to make a form store into memory and retrieve into the for for editting.
Cannot seem to find an..... More

Print this item

  How can I use Tkinter with pygame
Posted by: microphone_head - May-01-2019, 09:33 AM - Forum: GUI - Replies (4)

Hi everyone,

Can anyone help me so the code works with pygame and Tkinter (seemingly) simultaneously? Confused I'm also interested in formatti..... More

Print this item

  row multiplication using vectorization
Posted by: paul18fr - May-01-2019, 08:22 AM - Forum: Data Science - Replies (4)

Dear All

Coming from matlab, I'm progessively moving to Numpy/Python; I'm looking if the following calculation can be done (I looked tuto and so on..... More

Print this item

  Sort Matrices by Mean Value Obtained (OpenCV, Python and Numpy)
Posted by: danny_paez - May-01-2019, 06:15 AM - Forum: Homework - Replies (1)

Hi, I need help.

I'm working with OpenCV and Python.

I separated the green, red and blue components of an RGB image with OpenCV and Python. Then..... More

Print this item

  Session engine in Django
Posted by: karansingh - May-01-2019, 05:48 AM - Forum: Web Scraping & Web Development - Replies (1)

How i can configure session engine in Django through File based sessions?

Print this item

  waiting for the first of many pipes to send data
Posted by: Skaperen - May-01-2019, 05:20 AM - Forum: General Coding Help - Replies (7)

i am writing a script the will run up to about 16 child processes that send back output for the parent to read and print. the timing can be rather ra..... More

Print this item

  Run macros of excel sheet from python scripts
Posted by: shubhamjainj - May-01-2019, 03:34 AM - Forum: General Coding Help - Replies (3)

Hello,
I am getting the following error while running the macro using python scripts

[error]
Traceback (most recent call last):
File "C:\Users\user..... More

Print this item

  [pygame] Inventory problems. Weapons equipped to wrong slot
Posted by: SheeppOSU - Apr-30-2019, 09:46 PM - Forum: Game Development - Replies (6)

I've been working on this inventory for so long. i finally made big progress on it but I have a problem.

Problem - When buying an item it is succe..... More

Print this item

  Recommended game IDE on Ubuntu 18.04
Posted by: GarDebs - Apr-30-2019, 06:22 PM - Forum: Game Development - Replies (4)

Hi,

I hope someone can help me.

My son is really interested in learning game programming in Python. I've tried Spyder but cant get Pygame insta..... More

Print this item

  Split string into 160-character chunks while adding text to each part
Posted by: iambobbiekings - Apr-30-2019, 06:15 PM - Forum: Homework - Replies (9)

HELP!
A company has hired you as a consultant to develop software that can be used for sending SMS to their end-users. Currently, the maximum number ..... More

Print this item

  Replacing an integer by looking at a dictionary
Posted by: wendysling - Apr-30-2019, 05:31 PM - Forum: General Coding Help - Replies (3)

Hi,

I am trying to find the current month in a dataframe to pull other information from that specific month.

Datetime provides the mont..... More

Print this item

  Sqlalchemy foreign key problem
Posted by: IMuriel - Apr-30-2019, 04:19 PM - Forum: Web Scraping & Web Development - Replies (2)

hello im pretty stuck here, im trying to generate my models in order to autogenerate the tables and everyything works fine, but when i try to do somet..... More

Print this item

  Prime number Python homework
Posted by: mkrisz98 - Apr-30-2019, 02:18 PM - Forum: Homework - Replies (11)

Hi, I got a homework and I have to ask for some help.
My task is:
Listing the first six prime numbers, we get 2, 3, 5, 7, 11, and 13, where 13 is pr..... More

Print this item

  Chatbot with word2vec
Posted by: maik282 - Apr-30-2019, 01:49 PM - Forum: Data Science - No Replies

Hey there

I'm working my way into the chatbot topic right now. I already did some projects with rasa nlu and chatterbot.

Now I want to take the ..... More

Print this item

  How to draw a tree in garphviz
Posted by: mandana - Apr-30-2019, 01:19 PM - Forum: General Coding Help - Replies (2)

I want to draw a tree in python graphviz. I have data in excel with 3 columns. The first column is Tail, the second is Head and the third column is La..... More

Print this item

  Query in list.clear (beginner)
Posted by: Shaswat - Apr-30-2019, 01:17 PM - Forum: Homework - Replies (1)

Hello Everyone,

I am new in Python programming and trying to transpose the matrix. So if the matrix is

[icode]matrix = [[1, 2, 3, 4], [5, 6, 7,..... More

Print this item

  First for loop stops after first iteration
Posted by: Divanova94 - Apr-30-2019, 12:40 PM - Forum: General Coding Help - Replies (10)

I am creating a matrix array by reading two different lists with for loop. But the second for loop stops after the first iteration.
The print output..... More

Print this item

  python book bundle on humble bundle
Posted by: metulburr - Apr-30-2019, 10:44 AM - Forum: News and Discussions - Replies (3)

3 tier bundles for python books for 2 weeks
https://www.humblebundle.com/books/pytho..._content=p..... More

Print this item

  Running the Regressive Imagery Dictionary program...
Posted by: treegreen - Apr-30-2019, 10:34 AM - Forum: General Coding Help - Replies (3)

Hello,

I'm a student researcher and am trying to get a program to run in Python, however I'm on my second attempt and don't think I have the expert..... More

Print this item

  Help Understanding Code
Posted by: Variables - Apr-30-2019, 10:16 AM - Forum: General Coding Help - Replies (1)

Hello Everyone
So i had to create a program that reads pcap files, takes the IP packet and shows it in a certain format. I had to ask for help and the..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Error: cannot mix str wit... 2 hours ago ngregistrations Joliekeva General Codin...
  Integer Factorization Too... Yesterday, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... Yesterday, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  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...
Most views
  The best Prog... 577423
  Tutorial Requ... 500886
  Web Scraping ... 441068
  Newbie with P... 385129
  New Users Int... 369666
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+ 12091
buran 8178
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Joliekeva Today
silversimon2 Yesterday
alissapena8 Yesterday
hoki1881 Yesterday
stephaniehendrix Yesterday

User Panel Messages

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