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 |
---|---|---|---|---|
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) |
— | about 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) |
— | about 1 year 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) |
— | over 1 year ago |