Computer Science, asked by rahulKumara6269, 10 months ago

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 anamkhurshid29
4

HEYA MATE YOUR ANSWER IS

Wow this Is really nice string

HOPE THIS HELPS ❤️

PLEASE MARK AS BRAINLIEST ❤️❤️

Answered by letmeanswer12
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
Math, 1 year ago