Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Why does my code not execute? (def function with 'for in' iteration over a dictionary
Post: RE: Why does my code not execute? (def function wi...

Omg, Im obviously still such a big noob xD Thanks a lot for clearing it up:)
Placebo General Coding Help 3 2,929 Oct-19-2018, 01:32 PM
    Thread: Why does my code not execute? (def function with 'for in' iteration over a dictionary
Post: Why does my code not execute? (def function with '...

Hi^^ I have troubles to find my mistake within following code: def printPicnic(itemsDict, leftWidth, rightWidth): print('PICNIC ITEMS'.center(leftWidth + rightWidth, '-')) for k, v in itemsDi...
Placebo General Coding Help 3 2,929 Oct-18-2018, 06:07 AM
    Thread: Fundamental understanding-problem regards to while-loops
Post: RE: Fundamental understanding-problem regards to w...

Thanks, helped a lot!:)
Placebo General Coding Help 7 3,959 Oct-11-2018, 01:18 PM
    Thread: Fundamental understanding-problem regards to while-loops
Post: RE: Fundamental understanding-problem regards to w...

Thanks both of you - I am already watching the recommended video on looping. Thanks volcano63 for that hint:) Right away in the video is an example shown which raises for me a likely very simple ques...
Placebo General Coding Help 7 3,959 Oct-11-2018, 11:49 AM
    Thread: Fundamental understanding-problem regards to while-loops
Post: RE: Fundamental understanding-problem regards to w...

Hi, thanks a lot for replying - it helps me already quite a lot^^ I would have 2 questions as for your code: 1.) Regards to the first line: 'How on earth python knows what 'attempts' are? My guess, i...
Placebo General Coding Help 7 3,959 Oct-10-2018, 05:40 AM
    Thread: Fundamental understanding-problem regards to while-loops
Post: Fundamental understanding-problem regards to while...

Hi! Following code is correct and executes without any problems: while True: age = input('Enter your age:\n') if age.isdecimal(): break print("Please enter a number for your age....
Placebo General Coding Help 7 3,959 Oct-09-2018, 12:08 PM
    Thread: Why does this elif_statement not work?
Post: RE: Why does this elif_statement not work?

Omg, lol, I have looked yesterday more than 10 times over the code, but just have overlooked it completely. Thanks for quickly clearing it up^^
Placebo General Coding Help 3 2,990 Oct-07-2018, 01:28 PM
    Thread: Why does this elif_statement not work?
Post: Why does this elif_statement not work?

Hi! My code: feeling = input('How are you?\n') if feeling.lower() == 'great': print('I feel great too.') elif feeling.lower == 'bad': print('I hope the rest of your day will be good.') else: ...
Placebo General Coding Help 3 2,990 Oct-06-2018, 03:00 PM
    Thread: Issue with my 'roll the dice simulation'-exercise (cannot break out of the loop)
Post: RE: Issue with my 'roll the dice simulation'-exerc...

Hey, thanks a lot for your insights. Very valueable input on making it a habit using the string.lower() method for your mentioned reasons^^ Ah interesting, you can use the 'in' or 'not in' not only f...
Placebo General Coding Help 2 3,514 Sep-30-2018, 01:19 PM
    Thread: Issue with my 'roll the dice simulation'-exercise (cannot break out of the loop)
Post: Issue with my 'roll the dice simulation'-exercise ...

Hello! I know that there are many code-solutions to find with google, when you type in the name of this common exercise, but many of them had another goal for their little program. The instruction/go...
Placebo General Coding Help 2 3,514 Sep-29-2018, 03:18 PM
    Thread: 'Looping' does not work out within a 'for Loop'
Post: RE: 'Looping' does not work out within a 'for Loop...

Thanks for posting the code - I will try it tomorrow. Regards to 1.) i.e. how the program knows what the secret number is: I might have just missed completely that due to the fact that the choosen ...
Placebo General Coding Help 4 3,344 Sep-15-2018, 08:19 PM
    Thread: 'Looping' does not work out within a 'for Loop'
Post: RE: 'Looping' does not work out within a 'for Loop...

Hey, thanks for the PEP styleguide-link - gonna put it on my kindle and read through it. Regards to question 1.) But some exact int-value does not need to be defined i.e how the program can know what ...
Placebo General Coding Help 4 3,344 Sep-15-2018, 05:53 PM
    Thread: 'Looping' does not work out within a 'for Loop'
Post: 'Looping' does not work out within a 'for Loop'

Hi^^ I just cannot find my mistake regards to an ecercise I have made. Before asking my questions, I just include here my Code and the output: # This is a guess the number game. import random secret...
Placebo General Coding Help 4 3,344 Sep-15-2018, 04:07 PM
    Thread: Getting error: Name error
Post: RE: Getting error: Name error

Ah ok, that's interesting - yeah, all seems as a newbie for me infinite, in terms of what there is to learn xD I hope that in a few months, when I invest daily my 2-3 hours for learning programming, I...
Placebo General Coding Help 10 6,002 Sep-08-2018, 01:21 PM
    Thread: Getting error: Name error
Post: RE: Getting error: Name error

In fact, it all runs well. For some unknown reason, I have always assumed that input() cannot be empty i.e. that some sort of vlaue must be within the brackets – please do not ask me why I could have ...
Placebo General Coding Help 10 6,002 Sep-08-2018, 07:53 AM
    Thread: Getting error: Name error
Post: RE: Getting error: Name error

Hi! Since, my concern is again about an exercise in the mentioned book here, I hope it is ok to not open a new thread, but instead using this one again. Basically I start to question my sanity xD I...
Placebo General Coding Help 10 6,002 Sep-08-2018, 06:32 AM
    Thread: was Python your 1st or 2nd language?
Post: RE: was Python your 1st or 2nd language?

I am brand new to this whole world. I am starting out with Python and Java. I wonder what People would recommend as a 3rd language 'on the side'? I will soonst start studying Computer science and it s...
Placebo Bar 11 6,036 Sep-07-2018, 01:35 PM
    Thread: Getting error: Name error
Post: RE: Getting error: Name error

Al right, thanks a lot for replying:)
Placebo General Coding Help 10 6,002 Sep-07-2018, 01:28 PM
    Thread: Getting error: Name error
Post: RE: Getting error: Name error

Hi! First of all, thanks a lot to you both for replying and helping out:) @buran: I find it cool, that you right away have been able to identify where I am coming from and that I am a starter with t...
Placebo General Coding Help 10 6,002 Sep-07-2018, 09:40 AM
    Thread: Getting error: Name error
Post: Getting error: Name error

Hi^^ I am beginning to learn some coding with python and hence I am a total beginner. I have not found in this community any beginner-section, so I really hope that this is the correct place to post ...
Placebo General Coding Help 10 6,002 Sep-07-2018, 06:56 AM

User Panel Messages

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