Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
General Awareness
→
IIT JEE in General Awareness
→
Write the syntax for isalnum( ) method.
1.
Write the syntax for isalnum( ) method.
Answer» Following is the syntax for isalnum( )
method :
str.isalnum( )
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
Write the output of the following code# !/usr/bin/pythonstr = “this is string example….wow!!!”;print str.zfill(40);print str.zfill(50);
Write the output of the given code #!/usr/bin/python str = “this-is-real-string-example….wow!!!”; print “Min character: ” + min(str); str = “this-is-a-string-example….wow!!!”; print “Min character: ” + min(str);
Write the output of the following code.# !/usr/bin/pythonstr = “this”; # No space & digit in this string print str.isalpha( );str = “this is string example….wow!!!”; print str.isalpha( );
Describe the isdigit( ) method
Write the output of the given code #!/usr/bin/pythonstr = “this is really a string example….wow!!!”; print “Max character: ” + max(str); str = “this is a string example….wow!!!”; print “Max character: ” + max(str);
Describe Triple Quotes in Python.
Write the output of the following python code #!/usr/bin/pythonstr = “Line1-a b c d e f\nLine2- a bc\n\nLine4- a b c d”;print str.splitlines( ); print str.splitlines(O); print str.splitlines(3); print str.splitlines(4); print str.splitlines(5);
Describe isdecimal( ) with example.
Define strip ([chars]) with its syntax
Write the syntax of isdecimal( ) and give suitable example
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies