Bouquet

Report a typo

Florist Lillian finds it easier to arrange flowers when their number is odd. So, if the number of flowers in a bouquet happens to be even, she usually adds one more flower. How would you replicate this procedure in code?

Make sure to indent your code properly: hitting the right arrow button once equals to adding 4 spaces for indentation.

To reorder the lines of code you can either use up and down arrows that are placed to the right of each line of code, or drag them with the mouse.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                if n_flowers % 2 == 0:
              
                n_flowers += 1
              
                n_flowers = int(input())
              
___

Create a free account to access the full topic