Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Using .join()
Post: RE: Using .join()

Weird, I put the code into visualizer and it worked. Guess my jupyter has some problem running the code The error code was: Enter: - File "<string>", line 1 & ^ SyntaxError: une...
extricate Homework 3 2,151 Jun-26-2020, 06:57 AM
    Thread: Using .join()
Post: Using .join()

Hi there, I'm supposed to join up the string by entering an input. I can't seem to get it to work, I suspect the separator i input might not be a string. Any advice? phrase_words = ['Jack', 'and', '...
extricate Homework 3 2,151 Jun-26-2020, 06:40 AM
    Thread: Help needed, stuck at the final output
Post: Help needed, stuck at the final output

Hi, I've created this code, whereby, if i type "quit", it will return "Goodbye" but in this case, it returns twice. Any hint on how do I make it to return once? Below is the whole code: animals = [...
extricate Homework 0 1,540 Jun-20-2020, 05:35 AM
    Thread: "return" value indentation
Post: RE: "return" value indentation

great aid. thanks
extricate Homework 3 2,361 Jun-19-2020, 06:42 AM
    Thread: "return" value indentation
Post: "return" value indentation

Hi, Regarding the code below phone_letters = ["' '","","ABC","DEF","GHI","JKL","MNO","PQRS","TUV","WXYZ"] def let_to_num(): letter = input("Enter letter: ") key = 0 while key < 10: ...
extricate Homework 3 2,361 Jun-19-2020, 05:28 AM
    Thread: What's the logic of this question?
Post: RE: What's the logic of this question?

(Jun-17-2020, 08:54 AM)buran Wrote: you are completely right that you can achieve the same without using pop() but as it's a lesson on using pop() - well, they use it.... pop() not only removes the ...
extricate Homework 6 3,815 Jun-18-2020, 06:25 AM
    Thread: Need help decoding
Post: RE: Need help decoding

(Jun-16-2020, 02:47 PM)jefsummers Wrote: The version you found checks against "go" as you are supposed to get words h-z. This is an error as it will pass the words "guess" and "gyroscope". You shoul...
extricate Homework 7 2,665 Jun-17-2020, 08:43 AM
    Thread: What's the logic of this question?
Post: What's the logic of this question?

Hi there, I have a question on this question: Cash Register Input create a empty list purchase_amounts populate the list with user input for the price of items continue adding to list with while unt...
extricate Homework 6 3,815 Jun-17-2020, 08:41 AM
    Thread: Need help decoding
Post: RE: Need help decoding

In fact, the steps are provided in the assignment: split the words by building a placeholder variable: word loop each character in the input string check if character is a letter add a letter to w...
extricate Homework 7 2,665 Jun-16-2020, 07:54 AM
    Thread: Need help decoding
Post: Need help decoding

Hi, This pertains to a question in my assignment where I'm required to: Create a program inputs a phrase (like a famous quotation) and prints all of the words that start with h-z Sample input: enter...
extricate Homework 7 2,665 Jun-15-2020, 05:05 AM
    Thread: Question on "define function"; difference between return and print
Post: RE: Question on "define function"; difference betw...

(Jun-07-2020, 07:37 AM)ndc85430 Wrote: Functions that return values (i.e. other than those implicitly returning None like print) are more like functions in mathematics: they can be combined to produ...
extricate Homework 10 4,720 Jun-08-2020, 06:55 AM
    Thread: Question on "define function"; difference between return and print
Post: Question on "define function"; difference between ...

Hi there, Can someone enlighten me on the diff between print and return when defining function. I get the same output for both, albeit with the apostrophe. Thanks alot def yell_it(phrase): print...
extricate Homework 10 4,720 Jun-07-2020, 07:20 AM
    Thread: Add food choice to menu
Post: RE: Add food choice to menu

Thanks for taking the time to explain the concepts. I understand it better now as to why you suggested the things you do. No one explains these concepts when u go through an online lesson. Thanks! As...
extricate Homework 4 2,728 Jun-07-2020, 07:04 AM
    Thread: Add food choice to menu
Post: Add food choice to menu

Hi there, I'm just trying to apply what I've learned so far. I just thinking of a way to add food choice to the current menu. I want my code to allow 4 food choices to be added to the current menu. I...
extricate Homework 4 2,728 Jun-07-2020, 05:39 AM
    Thread: The "in" function, weird output
Post: RE: The "in" function, weird output

Thanks for the replies. I'm working on eDx Microsoft Beginner Python course
extricate Homework 3 2,029 Jun-07-2020, 05:28 AM
    Thread: The "in" function, weird output
Post: The "in" function, weird output

menu = ("salad, pasta, sandwich, pizza, drinks") choice = input("Enter input: ") print(choice in menu) if choice in menu == True: print("Available") else: print("Not Available")Hi the...
extricate Homework 3 2,029 Jun-06-2020, 06:57 AM
    Thread: Difficulty when trying to call all the input values
Post: Difficulty when trying to call all the input value...

Hi, Below is my code: def add_report(report): total = 0 item = "" user = input("Enter an integer to add to toal or Q") while True: if report.upper() == "T": user_...
extricate Homework 2 1,938 Jun-05-2020, 05:50 AM
    Thread: 4 tries choice question, one difficulty
Post: RE: 4 tries choice question, one difficulty

Thanks for all the replies. Appreciate it. I've managed to solve it rainbow = ("red", "orange", "yellow", "green", "blue", "indigo", "violet") tries = 0 go = True while go: choice = input("Enter...
extricate Homework 4 2,371 Jun-04-2020, 05:07 AM
    Thread: 4 tries choice question, one difficulty
Post: 4 tries choice question, one difficulty

Hi there, I have come up with this code, after 4 tries, it is supposed to say "Out of tries" but before it says "Out of tries", it will say "Try again" Any idea what correction is needed to prevent ...
extricate Homework 4 2,371 Jun-03-2020, 07:04 AM

User Panel Messages

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