rainyear / python3-in-one-pic

Learn python3 in one picture.

Home Page:https://git.io/Coo-py3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

set is missing '!' in later part

alok0 opened this issue · comments

commented
            >>> st = set(['s', 'e', 'T'])
            >>> st
            {'s', 'T', 'e'}
            >>> st.add('t')  
            >>> st
            {'s', 'T', 't', 'e'}
            >>> st.add('t')
            >>> st
            {'s', 'T', 't', 'e'}
            >>> st.update(['!', '!'])
            >>> st
            {'s', 'T', 't', '!', 'e'}
            >>> st.discard('t') 
            >>> st
            {'s', 'T', '!', 'e'}
            >>> st.remove('T') 
            >>> st
            {'s', '!', 'e'}
            >>> st.pop()
            's'
            >>> st
            {'!', 'e'}
            >>>