#Python Pop Quiz 🐍❓

Is this valid code? True or False?

Reply to this note

Please Login to reply.

Discussion

λ putStrLn "coach""

• The function ‘putStrLn’ is applied to two value arguments,

but its type ‘String -> IO ()’ has only one

In the expression: putStrLn "coach" ""

In an equation for ‘it’: it = putStrLn "coach" ""

• Relevant bindings include it :: t (bound at :1:1)

λ

Termux —> python:

>>> print("coach""")

coach

so apparently yes

(but it probably shouldn't be: confusing as hell)

"works, but sure it is confusing """