What will be the output?? Comment down your answers in comment section 🤔🚀 #python #programming #developer #morioh #programmer #softwaredeveloper #computerscience #webdev #webdeveloper #webdevelopment #pythonprogramming #ai #ml #machinelearning #pythonquiz #datascience
@Python_Dv The output of the provided Python code will be: "str char" Explanation: The `fun()` function concatenates the string "str " with the string 'char', resulting in the combination "str char", which is then printed.
@Python_Dv A Tricky cuz there was a bit of space in that "str "
@Python_Dv def fun: ^ SyntaxError: invalid syntax Correct version: def fun(): return "str " + 'char' print(fun()) Output: str char
@Python_Dv D. none of the above Ans : strchar (no whitespace)