On 29/01/20 4:51 PM, sushma ms wrote:
Thanks a lot.
But why can't we make output of input also dynamic data assignment.
1 please don't 'top post': the normal sequence of a conversation is
question THEN answer!
2 ambiguity! It is not possible for the input() mechanism to tell
whether you
Thanks a lot.
But why can't we make output of input also dynamic data assignment.
Thanks & Regards,
Sushma MS
On Tue, Jan 28, 2020, 9:54 PM Mariatta wrote:
> input() returns a string. If you want it to be treated as an int you need
> to cast it, example:
>
> num =int(input ("Enter number"))
>
input() returns a string. If you want it to be treated as an int you need
to cast it, example:
num =int(input ("Enter number"))
On Tue, Jan 28, 2020, 5:13 AM sushma ms wrote:
> Hi
>
> Please find below example and the compiler error,
>
> when i'm assigning value dynamically and when we