Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Given a string s = “Welcome”, which of the following code is incorrect?
Home
Python
Given a string s = “Welcome”, which of the following code is incorrect?
0
votes
asked
Feb 11, 2020
in
Python
by
rahuljain1
Given a string s = “Welcome”, which of the following code is incorrect?
print s[0]
print s.lower()
s[1] = ‘r’
print s.strip()
#pyton-string
Python-questions-answers
Please
log in
or
register
to answer this question.
0
Answers
Related questions
0
votes
Q: Considering The Following Code: S = ‘catandapple’ Write An Expression That Evaluate To ‘apple’?
asked
Jun 28, 2020
in
Python
by
Robindeniel
#python-expression
#python-evaluation
Python-questions-answers
0
votes
Q: Which of the following declarations is incorrect in python language?
asked
Jan 18, 2021
in
Python
by
SakshiSharma
#python-declaration
Python-questions-answers
0
votes
Q: Which of the following declarations is incorrect?
asked
Jan 18, 2021
in
Python
by
SakshiSharma
#python-declaration
Python-questions-answers
0
votes
Q: Write Python code to check the given sequence is a palindrome or not?
asked
May 17, 2020
in
Python
by
sharadyadav1986
#python-palindrome-program
Python-questions-answers
0
votes
Q: Q. Which of the following decorator is used to skip a test if a given condition is false, with unittest?
asked
Jun 30, 2020
in
Python
by
GeorgeBell
#python
Python-questions-answers
0
votes
Q: Which of the following special attribute can be used to access a doc string in a program?
asked
Jul 10, 2020
in
Python
by
GeorgeBell
#python
Python-questions-answers
0
votes
Q: Which of the following special attribute can be used to access a doc string in a program?
asked
Jun 29, 2020
in
Python
by
Robindeniel
#python-doc-string
#doc-string-python
Python-questions-answers
0
votes
Q: Which of the following function convert a string to a float in python?
asked
Feb 11, 2020
in
Python
by
rahuljain1
#python-string
Python-questions-answers
0
votes
Q: Which of the following statement(s) is TRUE?
asked
Feb 11, 2020
in
Python
by
rahuljain1
#python-hash-table
Python-questions-answers
+1
vote
Q: Given the following data frame drop rows having column values as A.
asked
Feb 14, 2021
in
Python
by
SakshiSharma
#python-data-fame
dataframe
python
Python-questions-answers
...