Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Autonomous Python Script
Post: RE: Autonomous Python Script

(Mar-31-2022, 08:23 PM)deanhystad Wrote: How do you try to launch it? Hello, In the terminal I've tried : python3 several.py as suggested by Axel_Erfurt also: sudo python3 several.pybut nothing.
Leyo Homework 6 1,940 Apr-01-2022, 07:27 AM
    Thread: Autonomous Python Script
Post: Autonomous Python Script

good evening, May I ask for your help again? Quote:Create a plural.py script, capable of taking several words and displaying their plural. Example: $several.py dog, cat, bird dogs cats birds T...
Leyo Homework 6 1,940 Mar-31-2022, 08:03 PM
    Thread: Function combining file manipulation and loop
Post: RE: Function combining file manipulation and loop

so simple...thank you Coricoco_fr!thank you Perfringo, great to learn alternative ways to do this
Leyo Homework 5 1,768 Mar-23-2022, 09:47 AM
    Thread: Function combining file manipulation and loop
Post: RE: Function combining file manipulation and loop

(Mar-22-2022, 09:39 PM)deanhystad Wrote: Did you call the function? hello, when calling the function: write_list_to_file(wordlst,myfile)I get: Error:NameError Traceb...
Leyo Homework 5 1,768 Mar-22-2022, 10:24 PM
    Thread: Function combining file manipulation and loop
Post: Function combining file manipulation and loop

good evening, could I ask for some help with this assignment? Quote:We want to save a list of words in a file so that we can reuse it later. Define a function write_list_to_file(wordlst, filename) t...
Leyo Homework 5 1,768 Mar-22-2022, 08:50 PM
    Thread: Count occurences in a string and add to a list using loops
Post: RE: Count occurences in a string and add to a list...

not one but three solutions :) amazing, and thanks for the detailed comments as well, it's super helpful
Leyo Homework 4 1,692 Mar-11-2022, 03:52 PM
    Thread: Count occurences in a string and add to a list using loops
Post: RE: Count occurences in a string and add to a list...

(Mar-11-2022, 12:14 PM)Larz60+ Wrote: using a dictionary, you can do it on the fly: text=""" \ I want a hero: an uncommon want, When every year and month sends forth a new one, Till, after cloying t...
Leyo Homework 4 1,692 Mar-11-2022, 03:51 PM
    Thread: Count occurences in a string and add to a list using loops
Post: Count occurences in a string and add to a list usi...

Good morning, May I ask for some help with this homework please?: Quote:We're given a string called text: text=""" \ I want a hero: an uncommon want, When every year and month sends forth a new on...
Leyo Homework 4 1,692 Mar-11-2022, 11:01 AM
    Thread: Extract columns from a 2 dimentional table
Post: RE: Extract columns from a 2 dimentional table

(Feb-22-2022, 06:56 PM)BashBedlam Wrote: One reason for not using one and two letter variable names is that things likematcan be confusing. Descriptive variable names make the code much clearer and ...
Leyo Homework 4 1,748 Feb-22-2022, 07:50 PM
    Thread: Extract columns from a 2 dimentional table
Post: RE: Extract columns from a 2 dimentional table

(Feb-22-2022, 04:06 PM)DPaul Wrote: Hi, You are making it more difficult than necessary **smile** M has 3 rows Each row has 4 columns so: for row in M... and every row [0] is the first col....etc....
Leyo Homework 4 1,748 Feb-22-2022, 07:49 PM
    Thread: Extract columns from a 2 dimentional table
Post: Extract columns from a 2 dimentional table

hello everyone, I struggle on this exercise: define a function col(mat, j) allowing to retrieve a column of the matrix. For example col(M, 1) will return [2, 6, 10]. here's the matrix (list of list ...
Leyo Homework 4 1,748 Feb-22-2022, 03:49 PM

User Panel Messages

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