Write the output of the following code.
# !/usr/bin/python
str = "this" # No space & digit in this string print str.isalpha( )
str = "this is string example….wow!!!" print str.isalpha( )
Answers
Answered by
4
HEYA MATE YOUR ANSWER IS
Wow this Is really nice string
HOPE THIS HELPS ❤️
PLEASE MARK AS BRAINLIEST ❤️❤️
Answered by
0
Output is True, False
Explanation:
In the code snippet,
str = "this"
print str.isalpha( )
The first statement is to checks whether all the characters in the string "this" are alphabets. Eventually, the string has all are of alphabets characters hence the return value will be 'True'.
str = "this is string example….wow!!!"
print str.isalpha( )
The second statement checks whether all the characters in the string "this is string example….wow!!!" are alphabets. Eventually, the string has alphabets & special characters, hence the return value will be 'False'.
Output:
- True
- False
Similar questions
English,
5 months ago
Math,
5 months ago
CBSE BOARD XII,
5 months ago
Computer Science,
10 months ago
Computer Science,
10 months ago
Math,
1 year ago
Science,
1 year ago