The Nerdy Sixty | (26/60) Future Braces | Solution

What happens if you attempt `from __future__ import braces` in Python?

Hint 1: This is a tongue-in-cheek Easter egg about Python never adding braces for block delimiting.

Hint 2: If you try `from __future__ import braces`, Python has a special response.

 

Solution:

Attempting `from __future__ import braces` in Python will result in a `SyntaxError: not a chance`. It’s a humorous way of saying Python will never use braces for code blocks.

 

 


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

WordPress Cookie Notice by Real Cookie Banner