Computer Science, asked by sugnik11sc2020, 4 months ago

Consider the following string given below:-

str=” Programming Language”

str.isdigit() #Line1

Now based on the above mentioned string answer the following questions:-

(a)Predict the output when we write str[3:5]
(b)What type of error will we encounter when we write str[-25]
(c)What output we will get when we write str[-8]​

Answers

Answered by Mister360
0

Explanation:

Let's use python

code:-

# Python code for implementation of isdigit()

# checking for digit

string = '15460'

print(string.isdigit())

string = '154ayush60'

print(string.isdigit())

Similar questions