What Will Be The Output Of The Following Python Functionp Pre #624
What will be the output of the following Python function?</p> <pre><code class="language-python">float(' -12345\n')</code></pre> <p> (Note that the number of blank spaces before the number is 5)
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Built-in Functions - Python Built-in Functions - Quiz No.3.
What will be the output of the following Python function?
float(' -12345\n')
(Note that the number of blank spaces before the number is 5)
-12345.0 (5 blank spaces before the number)
-12345.0
Error
-12345.000000000…. (infinite decimal places)