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 Java Program to find Armstrong number
Write a Java program to swap the first and last elements of an array and create a new array
Write a Java program to convert seconds to hour, minute and seconds
Write a Java program to print the sum of two numbers
Write a java Program to check the given number is Palindrome or not
Write a Python program that prints the calendar for a given month and year.
Write a python program to convert uppercase strings and we want to convert them into lowercase strings and remove duplicates ?
Write a Python Program to Check Leap Year.
Write a Python program to test whether a passed letter is a vowel or not.
Write a Python program to calculate the sum of three given numbers. If the values are equal, return three times their sum.
Java Quiz - 23
Java Quiz - 2
Java Quiz - 12
Java Quiz - 20
Java Quiz - 8