Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update D1_of_3Day_DoneWithPython.md #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions D1_of_3Day_DoneWithPython.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ x = 7 ** 6          print (x)  # witt. fron't  inden-tation
- c = 3    #int 
- d = a ** 2 # square of a 
- print (type (d))    # return the type of d  
- print (type (d/l0)) # return the type of d/l0 
- print (type (d/10)) # return the type of d/10
- print (type (a/b))  # return the type of a/b 
- print (type (a/c))  # return the type of a/c 
- print (type (b*d))  # return the type of b*d
Expand Down Expand Up @@ -320,7 +320,7 @@ print(t.split()) # split by words
print(t.find('i')) # return index of 'i'
print(t.find('in')) # index of 'i' in 'in'
print(t.find('Python')) # find sth not in
print(t[0:4]) # returu from index 0 to 3
print(t[0:4]) # return from index 0 to 3
print(t.replace(' ','|')) # replace by '|'
w = 'http://www.google.com'
print(w.strip('http://')) #delete sth
Expand Down