2020-01-12 13:16:55 +01:00
|
|
|
#!/usr/bin/python2
|
2020-01-12 13:11:00 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
"""Rozwiązanie zadania 105."""
|
|
|
|
|
2020-01-12 13:16:55 +01:00
|
|
|
def change_first(tuple_t, element_e):
|
|
|
|
"""Docstring for Pylint points"""
|
|
|
|
if not tuple_t:
|
|
|
|
return ()
|
2020-01-12 13:11:00 +01:00
|
|
|
|
2020-01-12 13:16:55 +01:00
|
|
|
tuple_list = list(tuple_t)
|
|
|
|
tuple_list[0] = element_e
|
|
|
|
new_tuple = tuple(tuple_list)
|
|
|
|
return new_tuple
|