Skip to content

Solutions-Class5-Python-Week3#8

Open
KadrEfe wants to merge 2 commits intofenyx-it-academy:mainfrom
KadrEfe:main
Open

Solutions-Class5-Python-Week3#8
KadrEfe wants to merge 2 commits intofenyx-it-academy:mainfrom
KadrEfe:main

Conversation

@KadrEfe
Copy link

@KadrEfe KadrEfe commented Sep 30, 2021

Revised

#inputs will be in elements list,afterwards we use sort() for sorting list
elements.sort()
return('-'.join(elements)) #join() method separates with '-'
print(sorter()) No newline at end of file
Copy link

Choose a reason for hiding this comment

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

clear


return(control) #Results will be shown here as same order with given list due to list.append
print(palindrome_chck())

Copy link

Choose a reason for hiding this comment

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

clear

Cap_f_n_=(" ".join(fullname))
return(Cap_f_n_)

print(name_check()) No newline at end of file
Copy link

Choose a reason for hiding this comment

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

clear

#We use Turkish to make it clear :D
sayiyazi=onluk[x]+birlik[y] #calling values for each digit to print,adjacent values due to sum str
return(sayiyazi)
print(nr_reader()) No newline at end of file
Copy link

Choose a reason for hiding this comment

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

clear

print("Perfect numbers lower than 1000 :",list(filter(perfect_nr,range(2,1001))))

print("Sum of perfect numbers lower than 1000 :",reduce(lambda x,y: x+y,list(filter(perfect_nr,range(2,1001)))))
# use reduce function to adding all perfect numbers lower than 1000. No newline at end of file
Copy link

Choose a reason for hiding this comment

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

perfect

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