Categories
5G Network
Agile
Amazon EC2
Android
Angular
Ansible
Arduino
Artificial Intelligence
Augmented Reality
AWS
Azure
Big Data
Blockchain
BootStrap
Cache Teachniques
Cassandra
Commercial Insurance
C#
C++
Cloud
CD
CI
Cyber Security
Data Handling
Data using R
Data Science
DBMS
Design-Pattern
DevOps
ECMAScript
Fortify
Ethical Hacking
Framework
GIT
GIT Slack
Gradle
Hadoop
HBase
HDFS
Hibernate
Hive
HTML
Image Processing
IOT
JavaScript
Java
Jenkins
Jira
JUnit
Kibana
Linux
Machine Learning
MangoDB
MVC
NGINX
Onsen UI
Oracle
PHP
Python
QTP
R Language
Regression Analysis
React JS
Robotic
Salesforce
SAP
Selenium
Service Discovery
Service Now
SOAP UI
Spark SQL
Testing
TOGAF
Research Method
Virtual Reality
Vue.js
Home
Recent Q&A
Feedback
Ask a Question
What Is Rstrip() In Python?
Home
>
Python
>
What Is Rstrip() In Python?
Dec 14, 2019
in
Python
Q: What Is Rstrip() In Python?
#python-rstrip
1
Answer
0
votes
Dec 14, 2019
Python provides the rstrip() method which duplicates the string but leaves out the whitespace characters from the end.
The rstrip() escapes the characters from the right end based on the argument value, i.e., a string mentioning the group of characters to get excluded.
The signature of the rstrip() is:
str.rstrip([char sequence/pre>
#Example
test_str = 'Programming '
# The trailing whitespaces are excluded
print(test_str.rstrip())
Click here to read more about Python
Click here to read more about Insurance
Facebook
Twitter
LinkedIn
Related questions
0
votes
Q: Can you please explain what is Rstrip() in Python Language?
Aug 30, 2020
in
Python
#python-rstrip-function
0
votes
Q: What is pickling and unpickling in Python?
Jan 11
in
Python
#pickling-python
0
votes
Q: What is module and package in Python?
Jan 1
in
Python
#python-package
0
votes
Q: What is negative index in Python?
Jan 1
in
Python
#python-negative-index
0
votes
Q: What is docstring in Python?
Jan 1
in
Python
#python-docstring
0
votes
Q: In Python what is slicing?
Jan 1
in
Python
#slicing-python
slicing
...