Answer :

Answer:

# The number is received from user as a string and converted to integer

user_val=int(input("Enter your number:"))

# If it is greater than 0; then it is positive else it is negative

if(user_val > 0):

   print(user_val," is positive")

else:

   print(user_val," is negative")

Explanation:

A sample image output is attached.

${teks-lihat-gambar} ibnahmadbello
${teks-lihat-gambar} ibnahmadbello

The conditional expression that evaluated the sting of the negative if user value is created.

  • # The number is received from user as a string and converted to integer
  • user_val=int(input("Enter your number:"))
  • # If it is greater than 0; then it is positive else it is negative
  • if(user_val > 0):

  print(user_val," is positive")

  • else:   print(user_val," is negative")

 Learn more about the  expression that evaluates to string "negative

https://brainly.com/question/24021512