Question:35

AtypicalvalueforthecharactervariableTargetis999,999.

WhichstatementcorrectlyconvertsthevaluesofTargettonumericvalueswhencreatingthevariableTargetNo?

1.TargetNo=input(target,comma6.);

2.Get all Questions and Answer from here

3.You need to have paid subscription to access all questions

4.Thanks for considering Python Certification Material

CorrectAnswer:2

YouexplicitlyconvertcharactervaluestonumericvaluesbyusingtheINPUTfunction.Besuretoselectaninformatthatcanreadtheformofthevalues.

UsingPUTandINPUTFunctions

Inthisexample,thePUTfunctionreturnsanumericvalueasacharacterstring.Thevalue122591isassignedtotheCHARDATEvariable.TheINPUTfunctionreturnsthevalueofthe

You can access to full explanation to question and answer from this page.