Console and printing issue

Question:
Why do I write a natural space in the code (for example: if number == 1) The space between if and number and other spaces are printed in the consel

Hi @NofeKj, welcome to the forums!
Could you send a screenshot of the issue?
Could check if you are missing a : at the end of the if statement?

1 Like

تحميل: IMG_1409.jpeg…

Not just in if … all of codes have the same issue

Could you try uploading the image again? looks like you posted before the image was done uploading.

Seems like your keyboard is inserting invisible characters there (U00A0), not spaces. Are you doing anything besides just typing spaces?

Edit: did some googling, U00A0 is the code point for a non-breaking space. What is your keyboard layout?

1 Like