I hereby claim:
- I am strideynet on github.
- I am strideynet (https://keybase.io/strideynet) on keybase.
- I have a public key ASBJ7Xu5t_0DtWBlCH6suAYW0O4e6zWUIUIQGUUFcZ2EpQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const fs = require('fs') | |
const readline = require('readline') | |
const parse = require('fast-json-parse') | |
const path = require('path') | |
function readdir(location, options) { | |
return new Promise((resolve, reject) => { | |
fs.readdir(location, options, (err, files) => { | |
if (err) return reject (err) |
# Module to find nearest palindrome | |
number = int(input('Enter number to find next palindrome: ')) | |
added = 0 | |
while True: | |
if str(number + added) == str(number + added)[::-1]: | |
break | |
else: | |
added = added + 1 |