Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How would you (as an python expert) make this code more efficient/simple
Post: How would you (as an python expert) make this code...

Hi, my question is quite simple: How would you make this piece of code more simple/efficient? def draw_pattern_1(p,m): print(p, end=' ') print(m, end=' ') print(m, end=' ') print(m,...
coder_sw99 General Coding Help 3 1,827 Feb-20-2022, 11:33 PM
    Thread: List comprehension used differently
Post: RE: List comprehension used differently

Thanks, @Yoriz!Thanks a lot @ndc85430
coder_sw99 General Coding Help 3 1,748 Oct-03-2021, 04:12 PM
    Thread: List comprehension used differently
Post: List comprehension used differently

Hello, I saw on GitHub this line of code: word_list = [letter if letter in used_letters else '-' for letter in word]But I have never seen list comprehensions used in this way and don´t understand i...
coder_sw99 General Coding Help 3 1,748 Oct-03-2021, 03:39 PM
    Thread: PyCharm Error?
Post: RE: PyCharm Error?

(Sep-24-2021, 05:51 PM)Yoriz Wrote: The references to objects are deleted when the program ends. But why does this not happen in IDLE?
coder_sw99 General Coding Help 4 2,018 Sep-24-2021, 05:58 PM
    Thread: PyCharm Error?
Post: PyCharm Error?

I have a problem with PyCharm. The Desctructor Method gets initialized, without it even been called. If I try it in the Python IDLE the intepreter doesn´t iniatialize the method, but it in PyCharm it ...
coder_sw99 General Coding Help 4 2,018 Sep-24-2021, 05:43 PM
    Thread: max() and min() in Python
Post: RE: max() and min() in Python

Thanks a lot!
coder_sw99 General Coding Help 3 1,796 Aug-29-2021, 08:51 PM
    Thread: max() and min() in Python
Post: max() and min() in Python

Hello, If two iterable objects are put in the max or min function, then the sum of both iterables is calculated and the iterable with the biggest sum will be outputted. Thats how I understand how...
coder_sw99 General Coding Help 3 1,796 Aug-29-2021, 06:06 PM
    Thread: Removing Space between variable and string in Python
Post: RE: Removing Space between variable and string in ...

Thanks a lot for the help you all!
coder_sw99 General Coding Help 6 6,355 Aug-03-2021, 07:26 PM
    Thread: Removing Space between variable and string in Python
Post: Removing Space between variable and string in Pyth...

Hi Forum, I don´t know how to remove space between variables and strings. print(temp_alt,"°C entsprechen",tem_neu+"°F")between temp_alt and °C there should be no space. If I insert a + then an e...
coder_sw99 General Coding Help 6 6,355 Aug-03-2021, 11:54 AM
    Thread: Algorithm for leap year (structogramm
Post: RE: Algorithm for leap year (structogramm

Thanks a lot! This is big help
coder_sw99 General Coding Help 3 2,247 Jul-23-2021, 01:26 PM
  Photo Thread: Algorithm for leap year (structogramm
Post: Algorithm for leap year (structogramm

Hello! Before I solve a problem I usually always draw a structogramm and then start to code. But I just can´t find a way how to code this structogramm. I have the feeling that I´m doing something wr...
coder_sw99 General Coding Help 3 2,247 Jul-22-2021, 05:55 PM
    Thread: Possibility to create Checkpoints in Loops?
Post: RE: Possibility to create Checkpoints in Loops?

Thanks a lot, this was a big help!
coder_sw99 General Coding Help 2 2,070 Jul-22-2021, 12:42 PM
    Thread: Possibility to create Checkpoints in Loops?
Post: Possibility to create Checkpoints in Loops?

Hello Python Forum! I´m fairly new to coding and I have a general question to the way how I code. I tried to put the whole code into one singular while-loop and also one "try and except" statement, b...
coder_sw99 General Coding Help 2 2,070 Jul-22-2021, 11:43 AM

User Panel Messages

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