Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: List Alignment Help
Post: List Alignment Help

Hello Friends, I would like to get my list to print out horizontally and have spaces in between on a new line like this: 10 15 25 30 25 30 45 60 81 92 81 The last line does not need to be separated...
A3G General Coding Help 1 4,141 Oct-25-2016, 05:00 AM
    Thread: how to remove brackets within a list
Post: RE: how to remove brackets within a list

thank you!
A3G General Coding Help 17 18,326 Oct-16-2016, 01:39 PM
    Thread: how to remove brackets within a list
Post: RE: how to remove brackets within a list

Yoriz, you are a savior.... thank you so much... if you have time would you please explain what the difference is between an IF and ELIF? I have been using if and if and if and if, not really using...
A3G General Coding Help 17 18,326 Oct-16-2016, 01:11 PM
    Thread: Practice Question Excersizes
Post: RE: Practice Question Excersizes

(Oct-04-2016, 03:19 PM)sparkz_alot Wrote: I always find it helpful to add "print()" statements at various points to verify that the value of variables are what they should be. You have the line: mo...
A3G Homework 5 6,309 Oct-16-2016, 12:38 PM
    Thread: how to remove brackets within a list
Post: RE: how to remove brackets within a list

thank you to you both! I am obviously new to this, great to have some excellent and fast feed back from the two of you! P.S. this is for my python class, but did not put in to the home work section ...
A3G General Coding Help 17 18,326 Oct-16-2016, 12:16 PM
    Thread: how to remove brackets within a list
Post: RE: how to remove brackets within a list

(Oct-16-2016, 11:31 AM)Yoriz Wrote: this will fix the order def student():     last_name = getLastname()     first_name = getFirstname()     gr, g = computeGrade()     studlist = [last_name, first_n...
A3G General Coding Help 17 18,326 Oct-16-2016, 11:39 AM
    Thread: how to remove brackets within a list
Post: RE: how to remove brackets within a list

(Oct-16-2016, 11:25 AM)wavic Wrote: Also you can change getting the Mark a bit while True:      try:          mark = int(input("What is your mark? (eg. 50) "))          break      except ValueError...
A3G General Coding Help 17 18,326 Oct-16-2016, 11:31 AM
    Thread: how to remove brackets within a list
Post: RE: how to remove brackets within a list

Thank you for the prompt reply. But when I enter this in: from itertools import chain my_list = [student()] def flatten(listOfLists):     return chain.from_iterable(listOfLists) my_flattened_list = ...
A3G General Coding Help 17 18,326 Oct-16-2016, 11:20 AM
    Thread: how to remove brackets within a list
Post: how to remove brackets within a list

Hello, I would like to know how to get rid of brackets within a list. Ex. ['1', 'r', (2, '5')]. The round brackets inside this list, I would like to get rid of.  Here is the code in question: #func...
A3G General Coding Help 17 18,326 Oct-16-2016, 10:39 AM
    Thread: Practice Question Excersizes
Post: RE: Practice Question Excersizes

thank you i see that spelling error. we did this example in class and I am just trying to get my mind around how the teacher did it.... unfortunately i wrote it down wrong and am stuck as to how to ge...
A3G Homework 5 6,309 Oct-04-2016, 02:56 PM
    Thread: Practice Question Excersizes
Post: Practice Question Excersizes

nomstudents = 0 totalgrade = 0 avegrade = 0 morestudents = input("Do you have any students? (yes/no) ").lower() while morestudents == 'yes':    grade = float(input("Enter your students grade: ")) whi...
A3G Homework 5 6,309 Oct-04-2016, 01:30 AM

User Panel Messages

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