This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/alexandr/.virtualenvs/SL&HTTP/bin/python /home/alexandr/PycharmProjects/SL&HTTP/Task1.py | |
['Task1', | |
' Level1_Folder4', | |
' Level2_Folder1', | |
' File_1.txt', | |
' File_2.py', | |
' Level2_Folder2', | |
' File_3.mp3', | |
' File_4.wav', | |
' Level1_Folder2', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Task 1 | |
alexandr@klimach:~$ mkdir GitTask | |
alexandr@klimach:~$ cd GitTask | |
alexandr@klimach:~/GitTask$ git init | |
Инициализирован пустой репозиторий Git в /home/alexandr/GitTask/.git/ | |
alexandr@klimach:~/GitTask$ subl file_1.txt | |
alexandr@klimach:~/GitTask$ git add file_1.txt | |
alexandr@klimach:~/GitTask$ git commit -m "Create new file with some content" | |
[master (корневой коммит) 9c062d8] Create new file with some content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
taskt 1 | |
alexandr@klimach:~$ mkdir GitProjects | |
alexandr@klimach:~$ cd GitProjects | |
alexandr@klimach:~/GitProjects$ git init | |
Инициализирован пустой репозиторий Git в /home/alexandr/GitProjects/.git/ | |
alexandr@klimach:~/GitProjects$ subl file_0.txt | |
alexandr@klimach:~/GitProjects$ git add file_0.txt | |
alexandr@klimach:~/GitProjects$ git commit -m "New file" | |
[master (корневой коммит) 7e52681] New file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Taks 1 | |
# alexandr@Alexandr:~$ pip -V | |
# pip 18.0 from /home/alexandr/.local/lib/python2.7/site-packages/pip (python 2.7) | |
# alexandr@Alexandr:~$ pip3 -V | |
# pip 18.0 from /usr/local/lib/python3.7/dist-packages/pip (python 3.7) | |
# alexandr@Alexandr:~$ virtualenv --version | |
# 16.0.0 | |
# alexandr@Alexandr:~$ virtualenvwrapper --version | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Task 2/1 | |
myList = list(range(1,30,3)) | |
print(myList) | |
# Task 2/2 | |
myList_2 = myList.copy() | |
myList_2.append(1) | |
myList_2.append(5) | |
myList_2.append(13) | |
myList_2.append(20) |