Python [urllib] 03 Recreating 'Quote' Functions

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Hi, I want to tell you that strings in python are immutable. Thus, the replace function returns another string and cannot modify the original string. You are lucky that .split() separate a string based on any white space such as newline, tab, and space, which explains why you did not notice your wrong use of replace

Grassmpl
Автор

Why do you use a `;` at end of every statement. Its pointless. Also, my OCD kicked in when I saw #{  and #}  

sourabhverma