GK SCIENTIST

General Knowledge One Stop Source
Menu
  • Home
  • Social Science
    • History
    • Political Science
    • Geography
  • Science
    • Physics
    • Chemistry
    • Biology
  • Chemistry Notes
  • Mathematics
  • Computer
  • Tutorial MySQL
  • Tutorial Python
  • Java Tutorial
  • English Grammar
  • English Essay
  • Indian Anthropology
  • Philosophy
  • Solved Paper
  • UPSC
  • Current Content
    • Current Affairs
    • RSTV News
    • Yojana and Kurukshetra Gist
  • Donate
  • Contact Us

If you are interested in advertising to our audience, submit the advertising enquiry form.

Advertising Enquiry
Computer

Python String Function

Gk Scientist November 25, 2022 No Comments
Tweet WhatsApp Telegram

Python String Function:

We can use the PyCharm code editor for this example. If you do not know about it then follow this link- How to install PyCharm for Python and create a program in it.
lower()Returns the string with all uppercase letters converted to lowercase.
lower function in Python - Python String Function
upper()Returns the string with all lowercase letters converted to uppercase.
upper function in Python - Python String Function
title()Returns the string with the first letter of every word in the string in uppercase and the rest in lowercase.
title function in Python - Python String Function
capitalize()Returns the string with the first letter of the word in the string in uppercase and the rest in lowercase.
capitalize function in Python - Python String Function
find()This method is used to locate the position of the given substring within the string; find returns -1 if it is unsuccessful in finding the substring.
find function in Python - Python String Function
index()Same as find() but raises an exception if the substring is not present in the given string.
index function in Python - Python String Function
isalpha()Returns True if the string contains only letters, otherwise returns False.
isalpha function in Python - Python String Function
isdigit()Returns True if the string contains only digits and False otherwise.
isdigit function in Python - Python String Function
isalnum()Returns True if the string contains only letters and digits, i.e., all characters are alphanumeric and Flase otherwise if the string contains any special character like _, @, #, * including space.
isalnum function in Python - Python String Function

Python Arithmetic Operators
String Concatenation in Python
How to Create Variables in Python
MySQL Tutorial
Computer Software and Hardware
Application Software
Database Models or Data Models
Python (programming language)– Wikipedia
Prev Article
Next Article

Related Articles

Create Slider in Java
Create Slider in Java: We can use the Eclipse IDE …
Gk Scientist January 16, 2023 Computer

Create Slider in Java

Encapsulation in Python
Encapsulation in Python: We can use the PyCharm code editor …
Gk Scientist December 5, 2022 Computer

Encapsulation in Python

World Wide Web (WWW)
World Wide Web: From the late 1960s to the early …
Gk Scientist September 16, 2022 Computer

World Wide Web (WWW)

ArrayList Java
ArrayList Java: We can use the Eclipse IDE for this …
Gk Scientist January 5, 2023 Computer

ArrayList Java

String Concatenation in Python
String Concatenation in Python: We can use the PyCharm code …
Gk Scientist November 21, 2022 Computer

String Concatenation in Python

Convert String to List in Python
Convert String to List in Python: We can use the …
Gk Scientist November 28, 2022 Computer

Convert String to List in Python

Install Java on Windows
Install Java on Windows: (1) Go to your browser and …
Gk Scientist December 26, 2022 Computer

Install Java on Windows

Java this Keyword
Java this Keyword: We can use the Eclipse IDE for …
Gk Scientist January 8, 2023 Computer

Java this Keyword

Leave a Reply Cancel Reply

Search




  • Popular
  • Recent




GK SCIENTIST

General Knowledge One Stop Source

Information

  • About Us
  • Terms and Condition, Disclaimer
  • Contact Us

Android Apps

  • IAS App For English Medium Students
  • IAS Basics App For English Medium Students
  • IAS Hindi App For Hindi Medium Students
DMCA.com Protection Status

Popular Tags

Biology (33) Biology Questions (88) Chemistry (57) Computer (214) Current Affairs (4) Current Content (0) Economy (10) English Essay (172) English Grammar (75) English Literature (10) Geography (83) History (259) Indian Anthropology (11) Indian Polity (14) JKAS Mains Question Papers (17) Mathematics (68) Moral Science (7) NCERT & Other Boards Books (25) Philosophy (114) Physics (89) Political Science (132) RS TV News (33) Science (553) Social Anthropology (7) Social Science (17) Solved Paper (47) UPSC (7) UPSC Mains Question Papers (26)

Downloads

  • NCERT Books
  • Old NCERT Books
  • NIOS Books For IAS, SSC, and State PSC Exam
  • Tamil Nadu Board Books: Important For UPSC, SSC, and State PSC Exam
  • Modern Indian and World History Notes For IAS Exam
  • UPSC Topper 2013 Gaurav Agrawal Notes For IAS Preparation
  • UPSC IAS Prelims General Studies – Previous Year Papers
  • UPSC Mains Question Papers

Copyright © 2023 GK SCIENTIST
Theme by MyThemeShop.com& Hosted On Cloudways

Ad Blocker Detected

Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Refresh
 

Loading Comments...