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

HW 1 #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

HW 1 #19

wants to merge 2 commits into from

Conversation

zandshahvar
Copy link

Summation of the Multipies of 3 and 5.

Description

Provide a brief description of the PR here.

Weekly Journal

Provide your weekly journal entry here.

Questions

  • Question1

Summation of the Multipies of 3 and 5.
HW week 1
@zandshahvar zandshahvar changed the title Problem01 HW 1 Jul 16, 2018
import math


def Palindromic(x):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kudos to you, this bit of code is really strange...how'd you come up with reversing the number this way? I would've just cast it to a string, then reversed it:

def str_palindrome(val):
    strval = str(val)
    if strval == strval[::-1]:
        return True

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dsirianni Thanks for your comment!

Copy link
Member

@dsirianni dsirianni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about problem 5? Whenever you get it done, commit and push to your fork and I'll merge your PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants