-
Notifications
You must be signed in to change notification settings - Fork 27
Elso hazi #21
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
base: master
Are you sure you want to change the base?
Elso hazi #21
Conversation
def tuple_last(tuplee): | ||
for i,var in enumerate(tuplee): | ||
if i == len(tuplee) - 1: | ||
return var; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ezzel azert messzire mentel hogy megkapd a tuplee[-1] elemet :)
basic/list2.py
Outdated
lista+=list1 | ||
if list2: | ||
lista+=list2 | ||
return lista |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
szep megoldas, de a pop(0) miatt nem linearis https://stackoverflow.com/questions/195625/what-is-the-time-complexity-of-popping-elements-from-list-in-python
No description provided.