Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integer Reversal #5

Open
xasterKies opened this issue Oct 31, 2021 · 11 comments
Open

Integer Reversal #5

xasterKies opened this issue Oct 31, 2021 · 11 comments
Assignees
Labels
challenge Daily Challenge Easy Beginner Friendly good first issue Good for newcomers

Comments

@xasterKies
Copy link
Collaborator

xasterKies commented Oct 31, 2021

Directions

Given an integer, return an integer that is the revers ordering of numbers while considering thier sign. Make use of functions where neccesory.

You can code this with any language of you choice!

Examples

reverseInt(15) === 51
reverseInt(981) === 189
reverseInt(500) === 005
reverseInt(-15) === -51
reverseInt(-90) === -90

@xasterKies xasterKies added Easy Beginner Friendly challenge Daily Challenge good first issue Good for newcomers labels Oct 31, 2021
@S10MC2015
Copy link

How do you want the commit?

@S10MC2015
Copy link

def ReverseInt(number):
    return str(number)[::-1]

inputnum = int(input("What number do you want to reverse?"))
print(ReverseInt(inputnum))

@xasterKies xasterKies self-assigned this Oct 31, 2021
@xasterKies
Copy link
Collaborator Author

Assign Me to this issue (@xaster-Kies)

@Blanco237
Copy link

def ReverseInt(number):
    return str(number)[::-1]

inputnum = int(input("What number do you want to reverse?"))
print(ReverseInt(inputnum))

Remember you have to take into consideration the sign. Your code fails on -ve numbers

@xxxSkypper
Copy link
Contributor

please assign me

@xasterKies
Copy link
Collaborator Author

@Blanco237 You should rather do a commit and make a pull request. read the readme and try to follow up

@ngigordon
Copy link
Contributor

please senior are you assigning but everyday or when one is assign one time that's all

@BertinAm
Copy link
Contributor

BertinAm commented Nov 2, 2021

Assign me @xaster-Kies

@S10MC2015 S10MC2015 removed their assignment Nov 2, 2021
@xasterKies
Copy link
Collaborator Author

How do you want the commit?

Please go through the readme

@janWICKEDpro
Copy link
Contributor

Assign me @xaster-Kies

@xasterKies
Copy link
Collaborator Author

Done @janWICKEDpro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
challenge Daily Challenge Easy Beginner Friendly good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

7 participants