ambujraj / hacktoberfest2018

A repository for HacktoberFest 2018.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reverse.py doesn't handle negatives or trim 0s

opened this issue · comments

File: reverse/Reverse.py 24a9fa7

Example: When you enter -10, you get:

Reversed Number is 01-

Also, Python doesn't allow for multiline comments to be encapsulated within /* and */. The program does not run. They must be within two sets of '''.

What must be the output in case of negative numbers?
@RamIyer1998

It should be the same number, but with the negative sign in the front.
So if I were to ask for the reverse of -10, the output should be -1.

I fixed it in my pr

This seems to be handled in @dag157's commit. I'm closing this.