PYTHON Programming Language. In 8 Hours, For Beginners, Learn Coding Fast! Python Crash Course, A QuickStart eBook, Tutorial Book with Hands-On Projects, In Easy Steps! An Ultimate Beginner's Guide! by Yao Ray
Author:Yao, Ray [Yao, Ray]
Language: eng
Format: epub, mobi, pdf
Publisher: Python programming zelle in a nutshell onesie kids coding learning 5th edition in your pocket programming quick reference card
Published: 2019-09-06T16:00:00+00:00
String Functions (2)
Functions
Returned Strings
separater.join()
join the strings by separator
str.swapcase()
swap the letter case of the string
str.zfill(length)
add zeros to the left of the string with length
Example 5.9
strDate = "/".join(["12", "31","2013"])
print (strDate)
str = "Python"
print (str.swapcase() )
print (str.zfill(10))
Output:
12/31/2013
pYTHON
0000Python
Explanation:
“"/". join(["12", "31","2013"])” separates the date string by “/”.
“str.swapcase()” changes “Python” to “pYTHON”
“str.zfill(10)” fills “0” to the string with length “10” on the left.
Download
PYTHON Programming Language. In 8 Hours, For Beginners, Learn Coding Fast! Python Crash Course, A QuickStart eBook, Tutorial Book with Hands-On Projects, In Easy Steps! An Ultimate Beginner's Guide! by Yao Ray.mobi
PYTHON Programming Language. In 8 Hours, For Beginners, Learn Coding Fast! Python Crash Course, A QuickStart eBook, Tutorial Book with Hands-On Projects, In Easy Steps! An Ultimate Beginner's Guide! by Yao Ray.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sapiens: A Brief History of Humankind by Yuval Noah Harari(13040)
The Tidewater Tales by John Barth(12026)
Do No Harm Stories of Life, Death and Brain Surgery by Henry Marsh(6332)
Mastermind: How to Think Like Sherlock Holmes by Maria Konnikova(6226)
The Thirst by Nesbo Jo(5778)
Why We Sleep: Unlocking the Power of Sleep and Dreams by Matthew Walker(5637)
Sapiens by Yuval Noah Harari(4531)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(4494)
The Longevity Diet by Valter Longo(4444)
The Rules Do Not Apply by Ariel Levy(3897)
The Immortal Life of Henrietta Lacks by Rebecca Skloot(3820)
The Body: A Guide for Occupants by Bill Bryson(3791)
Why We Sleep by Matthew Walker(3768)
Animal Frequency by Melissa Alvarez(3750)
Yoga Anatomy by Kaminoff Leslie(3696)
Barron's AP Biology by Goldberg M.S. Deborah T(3629)
The Hacking of the American Mind by Robert H. Lustig(3575)
All Creatures Great and Small by James Herriot(3507)
Yoga Anatomy by Leslie Kaminoff & Amy Matthews(3392)