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
Apply For Job
Java Material
Python Material
PLSQL Material
.Net Material
Java Practice Programs
400 Java Programs
Write a Program to remove duplicate element in an array
Write a java Program to print N prime numbers and find sum and average
Write a Java program to check whether Java is installed on your computer or not
Write a java Program to print Armstrong number between 1 to 1000
Write a Java program to print ‘Hello World!’ on screen
Write a Python program to count number of vowels in the given string
Write a Python program to convert kilometers to miles.
Write a Python Program to Check Prime Number.
Write a Python program that accepts an integer (n) and computes the value of n+nn+nnn.
Write a Python Program to Find Factorial of Number Using Recursion.
Java Quiz - 15
Java Quiz - 21
Java Quiz - 2
Java Quiz - 14
Java Quiz - 8