Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for Bennshinpoesâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #288061 |
This is a better explanation that I have expected! I have learned alot from this answer, thank you so much. (more) |
— | over 1 year ago |
Edit | Post #288060 | Initial revision | — | over 1 year ago |
Question | — |
Why can parentheses cause exceptions in Python when using for loops? Using parentheses in Javascript is always needed when you want to create functions, `if`/`else` statements and `for`/`while` loops. But in Python it has a function that is called tuples. When using an `if` statement for example, it won't be a big deal when I use parentheses. But when it comes to `for... (more) |
— | over 1 year ago |
Comment | Post #287934 |
Nice example. That makes it more understandable! (more) |
— | over 1 year ago |
Comment | Post #287935 |
Very good explained, and gives me good advice for using the modulo operator. (more) |
— | over 1 year ago |
Edit | Post #287932 | Initial revision | — | over 1 year ago |
Question | — |
Why are commas not needed for modulo string formatting when printing? Suppose I have two variables that are called `animal` and `age`, and print them as a string in the console like so: ``` animal = "giraffe" age = 25 print("A %s can live up to %d years" %(animal,age)) ``` Why shouldn't there be a comma between the string and the `%(animal,age)` part? Does Pyth... (more) |
— | over 1 year ago |
Comment | Post #287076 |
It's always the details that you don't notice. But this was the perfect solution for me. (more) |
— | about 2 years ago |
Edit | Post #287075 | Initial revision | — | about 2 years ago |
Question | — |
Child div doesn't inherit parent's div background-color I have a parent div with two child divs. I want the parent div and the child divs to have a blue background color when it's hovered. But the child divs doesn't inherit the background color. It is only applied to the parent's div only. Does this have to be applied separatly per div? I have tried to us... (more) |
— | about 2 years ago |