Mar-24-2024, 10:25 PM
(Mar-23-2024, 09:37 PM)menator01 Wrote: Please use bbtags when posting code.
The error is saying that you need to define a value for name.
Add name = '' above the if statement.
Great thank you! haha, easy but was too tired to see that miss so my mind wandered and thought it was a big problem..
Thanks for pointing that out, didn't know how but say your link there 👍
Just testing it out with the corrected program now to see how it looks:
name = 'Sam' if name == 'Sam': print('Hello Sam') print('Are you good?') else: print('Hello there')Have a nice day!