mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-12 21:01:48 +08:00
second version day-4
This commit is contained in:
parent
1f5d36a192
commit
180c5469a4
@ -359,7 +359,7 @@ result = 'The area of a circle with radius {} is {}'.format(str(radius), str(are
|
||||
print(result) # The area of a circle with radius 10 is 314
|
||||
```
|
||||
|
||||
- index(): Returns the lowest index of a substring, additional arguments indicate starting and ending index (default 0 and string length - 1)
|
||||
- index(): Returns the lowest index of a substring, additional arguments indicate starting and ending index (default 0 and string length - 1). If the substring is not found it raises a valueError.
|
||||
|
||||
```py
|
||||
challenge = 'thirty days of python'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user