Computer Science, asked by galaxy15, 2 months ago

Program 6:- Write a program to demonstrate the use of int and input function.

Answers

Answered by 0RPS0
4

print ( ' Please Enter Number ' )

Num1 = input ( )

print ( ' Num1 = ' , Num1 )

print ( type (Num1) )

print ( ' Converting type of Num1 to int ' )

Num1 = int (Num1)

print (Num1)

print (type (Num1) )

*Output*

Please Enter Number 12

Num1 = 12

<class 'str'>

Converting type of Num1 to int

12

<class 'int'>

Answered by galaxy19
1

Answer:

One way to protect women from domestic oppression is to raise awareness and explain their rights so that they can protect themselves.

Similar questions