Changes

Jump to: navigation, search

Rchan sandbox

10 bytes removed, 00:12, 3 November 2019
Part 2 - Pure Function and Modifiers
:4. Bring up an interactive Python3 shell to test the new function.
::'''Testing change_time(time, seconds) with import'''<source lang="bash">
[rchan@centos7 wiki_labslab7]$ python3
Python 3.4.9 (default, Aug 14 2018, 21:28:57)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux
</source>
:7. The result is not correct! So we have to modify and update the change_time() function so that it can handle positive and negative value correctly. After updating the change_time() function, test it again in a Python interactive shell by importing the new version of the function<source lang='bash'>
[rchan@centos7 wiki_labslab7]$ python3
Python 3.4.9 (default, Aug 14 2018, 21:28:57)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux
1,760
edits

Navigation menu