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
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
Science,
2 months ago
Sociology,
2 months ago
Computer Science,
4 months ago
Computer Science,
4 months ago
Math,
9 months ago