+ 1

Can You make a python program which follows these condition.

num = 23. If num == (any decimal number like 12.32) Return 'decimal' elif num==(any whole number like 23) Return 'whole number' else Return 'string'

1st Apr 2021, 2:11 PM
pratham jain
pratham jain - avatar
1 Antwort
+ 2
You can use an input statement for getting a number.
1st Apr 2021, 2:28 PM
JaScript
JaScript - avatar