Flag Chooser- Pickrandom help

HI ,

I modified the flag chooser puzzle by using the pickrandom() function directly in the IF statement rather than using it when declaring the variable flag.

When you run the code it gives an error by displaying both the flags together. If you run it again it displays the french flag. Then again if you run it , it shows a different result.

The code is written to choose a flag to display using pickrandom() function.


The code runs the two “if statement”. Use “if else statement” instead.