aboutsummaryrefslogtreecommitdiff
path: root/challenge-095/paulo-custodio/python/ch-1.py
blob: d59c8d2c55585c1ff3098d90cf20bc686f401a1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python

# Challenge 095
#
# TASK #1 › Palindrome Number
# Submitted by: Mohammad S Anwar
# You are given a number $N.
#
# Write a script to figure out if the given number is Palindrome. Print 1 if true otherwise 0.
#
# Example 1:
# Input: 1221
# Output: 1
# Example 2:
# Input: -101
# Output: 0, since -101 and 101- are not the same.
# Example 3:
# Input: 90
# Output: 0

import sys

print(1 if sys.argv[1] == sys.argv[1][::-1] else 0)