def myfun(): num=int(input("Enter a number: ")) if(num>0): print("Positive number") elif(num==0): print("Zero") else: print("Negative number") if __name__=="__main__": myfun()
Enter a number: 28 Positive number
Java Interview Questions
Python Interview Questions
Oracle Interview Questions
100 Most Asked Java Interview Questions and Answers
HR Interview Questions and Answers
Top 50 OOPS Interview Questions & Answers
Apply For Job
Java Material
Python Material
PLSQL Material
.Net Material
Java Practice Programs
400 Java Programs
Write a Java program to convert seconds to hour, minute and seconds
Write a Java program to accept a float value of number and return a rounded float value
Write a Java program to print the ascii value of a given character
Write a java Program to Print given number in words
Write a java Program to print odd and even numbers from an array
Write a Python program to remove duplicates from a list
Write a Python Program to Display Fibonacci Sequence Using Recursion.
Write a Python program sort a list in descending order
Write a program to merging dictionaries
Write a Python program that accepts a sequence of comma-separated numbers from the user and generates a list and a tuple of those numbers.
Java Quiz - 7
Java Quiz - 23
Java Quiz - 19
Java Quiz - 21
Java Quiz - 12