Re: [Tutor] I need help with my project

2018-11-28 Thread Sibylle Koczian
Am 28.11.2018 um 01:30 schrieb Treyton Hendrix: If the user selected a sandwich, french fries, and a beverage, reduce the total cost of the order by $1.00. This is what I have to do and I don't know where to start. Well, you are lucky. I just had my first mind-reading lesson today, you are my

Re: [Tutor] I have a problem

2017-09-23 Thread Sibylle Koczian
Am 22.09.2017 um 23:41 schrieb Mizav: You are using pip version 7.1.2, however version 9.0.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. And what is the problem? Did you understand the message? Did you try to do the upgrade and what happe

Re: [Tutor] Not returning out the series

2017-07-04 Thread Sibylle Koczian
Am 04.07.2017 um 04:40 schrieb Rafael Skovron: Hi as a challenge I have got to sum a series i / (i+1). My code isn't summing right. Any ideas why? def main(): print("{0:15s}{1:20s}".format("i","m(i)")) for i in range(1,20): print("{0:<15d}{1:<20.4f}".format(i,m(i))) def m(i)

Re: [Tutor] Fahrenheit to Celsius Conversion another problem and Programming Paradigm

2017-06-14 Thread Sibylle Koczian
Am 14.06.2017 um 16:20 schrieb William Gan: Good day Everyone, I am seeking help on two issues. ISSUE 1: Yesterday I posted a problem on this tiny script I wrote for temperature conversion (as practice for a newbie). My error was pointed out to me that there is a difference in upper and lower

Re: [Tutor] How to write the __str__ function

2017-05-14 Thread Sibylle Koczian
Am 14.05.2017 um 20:59 schrieb Martin A. Brown: Hello and greetings, I need some advice that I have been embarrased to ask for, because I think that my error is so elementary. Well, there are two benefits to trying to write down questions like this when you encounter them. 1) Rubber Duck

Re: [Tutor] Tkinter layout question

2017-04-23 Thread Sibylle Koczian
Am 20.04.2017 um 14:43 schrieb Alan Gauld via Tutor: Its not too bad you can map the large 9x9 table to the smaller units using divmod() So the 7th element becomes divmod(7) -> 2,1 Should be divmod(7, 3), shouldn't it? ___ Tutor maillist - Tuto

Re: [Tutor] Created Function, Need Argument to be a String

2016-12-16 Thread Sibylle Koczian
Am 12.12.2016 um 17:29 schrieb Bryon Adams: Is there a way to force my argument to always be a string before entering the function? Else, is there a better way to go about this? In whatever program I write, I could change what I want as input to be a string prior to tossing it into the function b

Re: [Tutor] Adding to a dict through a for loop confusion.

2016-05-17 Thread Sibylle Koczian
Hello, Am 17.05.2016 um 10:28 schrieb Chris Kavanagh: Could someone tell me why this different behavior occurs between these 2 code snippets, please. The 1st example has quotes around it ['item'] only adds the last item to the dict (cart). In the 2nd example the item does not have quotes around

Re: [Tutor] Newbie problems

2015-05-02 Thread Sibylle Koczian
Am 02.05.2015 um 09:58 schrieb Alan Gauld: I made no mention of green because it is not a tuple. Can you see why 'in' is not the right test for green. Can you see why the interpreter is complaining? *This is what I programmed:* number = int(input('Enter a number between 0 and 36: ')) green_nu

Re: [Tutor] Simple guessing game - need help with the math

2014-08-15 Thread Sibylle Koczian
Am 13.08.2014 01:25, schrieb Greg Markham: while answer == "h" or "l" or "c": print ("My guess is: ", guess, "\n") answer = input("Is it (H)igher? (L)ower? Or am I (C)orrect? ") answer = answer.lower() if answer == "h": guess = round(int(guess + (change/2)))