Welcome to www.qatutorials.com!!!!
      
      
Question Answer Tutorial Search
Home Search Add Question Python Basics Core Data Types

String

List Mock Test Contact Feedback
Home
Search
Add Question
Python
Basics
Core Data Types

String

List
Mock Test
Subscribe/Unsubscribe
Email:
Social Media
Facebook

Misc Tutorials

References

Question and Answer Tutorial
Tutorials Point
Stack Overflow

Question Answer Tutorial - Python->String

Previous 1 2 Next
                        
Question: What is the output when following statement is executed?

>>>"a"+"bc"
Answer: abc
Question: What is the output when following statement is executed?

>>>"abcd"[2:]
Answer: cd
Question: The output of executing string.ascii_letters can also be achieved by
Answer: string.ascii_lowercase+string.ascii_upercase
Question: What is the output when following code is executed?

>>> str1 = 'hello'
>>> str2 = ','
>>> str3 = 'world'
>>> str1[-1:]
Answer: o
Question: What is the output when following code is executed?

>>>print r"
hello"
Answer: hello
Previous 1 2 Next
Comment:
Name:Email:
Contact No.:
Copyright © 2014 by SBJ Group. All Rights Reserved. Developed and maintained by SBJ Group. Supported on Internet Explorer browser only