Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Removing existing tuples from a list of tuple
Post: RE: Removing existing tuples from a list of tuple

(May-15-2021, 02:15 PM)jefsummers Wrote: Seems to me the behavior would be better served by using a dictionary instead of tuples. Is that allowed? I always hate questions that restrict you from doin...
Bruizeh Homework 4 2,781 May-15-2021, 03:02 PM
    Thread: Removing existing tuples from a list of tuple
Post: Removing existing tuples from a list of tuple

For one of my rev questions I am trying to write a function that updates a list of tuples whenever a user decides to add a new contact. This has to be done by removing a tuple if the new contact name ...
Bruizeh Homework 4 2,781 May-15-2021, 04:08 AM
    Thread: Removing all strings in a list that are of x length
Post: Removing all strings in a list that are of x lengt...

Hey all, One of my revision practices involves creating a function that removes all strings that has the highest string length in a list. Expected Output: words_list = ['fish', 'barrel', 'like...
Bruizeh Homework 5 3,187 May-04-2021, 04:52 AM
    Thread: How to convert every even number in a list to odd?
Post: How to convert every even number in a list to odd?

Hey all, one of my revision questions was to create a func that takes a list of integer values as a list, and convert every even number into an odd number. Expected Output: integer_list = [1, 2, 3 ,...
Bruizeh Homework 4 3,756 May-01-2021, 02:15 AM
  Question Thread: Functions and if elif problem
Post: Functions and if elif problem

Hi all, Edit: We are not allowed to use lists, in. We are to solve this using if/elif/else These were the instructions: Complete the get_season() function which takes a string parameter month. If mon...
Bruizeh Homework 2 3,769 Apr-21-2021, 12:11 AM
    Thread: Running my game file yields a different error on a different computer system
Post: Running my game file yields a different error on a...

Hello, I would like to first preface this by saying that I am not looking for help with the program itself, but rather with the execution of said file. I recently made a game using Python Arcade whi...
Bruizeh Homework 0 1,474 Nov-10-2020, 03:15 AM
    Thread: NameError x not defined
Post: RE: NameError x not defined

(Feb-27-2019, 06:34 AM)ichabod801 Wrote: The first line of calc would look like this: def calc(decide, num1, num2): There is a brief function tutorial on this site.So you're calling num1 and num2 ...
Bruizeh Homework 5 5,280 Feb-27-2019, 06:38 AM
    Thread: NameError x not defined
Post: RE: NameError x not defined

(Feb-27-2019, 06:08 AM)Larz60+ Wrote: That's because it's out of scope by the time you call calc You can fix this by returning the value, example: def menu(): decide=input("1 for Addition, 2 for Su...
Bruizeh Homework 5 5,280 Feb-27-2019, 06:28 AM
    Thread: NameError x not defined
Post: NameError x not defined

Hello, my class just began functions() and defining them but I'm stuck rn. def greeting(): print("Hello, welcome to the Calculator App") def menu(): decide=input("1 for Addition, 2 for Subt...
Bruizeh Homework 5 5,280 Feb-27-2019, 06:02 AM
    Thread: How to print a statement if a user's calculated number is between two floats
Post: How to print a statement if a user's calculated nu...

Hello, I have a problem. So I made a formula that calculates a User's BMI based on their height and weight, and gave it the variable userBmi. I would like it that if userBMI is between two floats, it ...
Bruizeh Homework 2 2,399 Feb-10-2019, 10:25 AM
    Thread: How to reject "invalid" input in Python3.7
Post: RE: How to reject "invalid" input in Python3.7

(Feb-08-2019, 12:52 PM)FranSPG Wrote: What do you mean with invalid input ? You can validate the type of the input, like we do in the first script, we validated that the type of input must be a floa...
Bruizeh Homework 4 10,218 Feb-09-2019, 12:21 AM
    Thread: How to reject "invalid" input in Python3.7
Post: RE: How to reject "invalid" input in Python3.7

(Feb-08-2019, 12:02 PM)FranSPG Wrote: I see an indentation error there. You have to be careful with the indentations. Try this solution while True: try: height = float(input("Input you...
Bruizeh Homework 4 10,218 Feb-08-2019, 12:14 PM
    Thread: How to reject "invalid" input in Python3.7
Post: How to reject "invalid" input in Python3.7

Hello guys, so I'm taking my first course in Programming and our teacher assigned us to create a BMI calculator in Python, but I would like to know how to implement validation in my user inputs, that ...
Bruizeh Homework 4 10,218 Feb-08-2019, 11:06 AM

User Panel Messages

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