Assignment
University
American Baptist CollegeCourse
CSCI 1534 | Data Analysis and VisualizationPages
2
Academic year
2023
Muthia Marhamah
Views
0
Answer this question. Make a program in python to check the number from users’ input whether it is odd or even and positive or negative. Source Code : number = int(input('Input the number : ')) if number < 0 : print('The number is negative') if (number%2) == 0 : print('The number is positive') else : print('It is odd number') elif number == 0 : print('It is 0 (neutral)') if (number%2) == 0 : print('It is even number') else : print('It is odd numbe') else : print('The number is positive') if (number%2) == 0 : print('It is even number') else :
print('It is odd number') The output :
Python Practice #1 (Even,Odd and Positive,Negative Number)
Please or to post comments