B: ----> 6 print(int(""))
ValueError: invalid literal for int() with base 10: ''
C:----> 6 print(float("1c1"))
ValueError: could not convert string to float: '1c1'
In B,else block will be executed and it will throw "ValueError: invalid literal for int() with base 10: ''"
upvoted 5 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
DTL001
Highly Voted 2 years, 11 months agoJnanada
Highly Voted 2 years, 3 months agoseaverick
Most Recent 10 months agoDav023
2 years, 2 months agomacxsz
2 years, 6 months agomacxsz
2 years, 6 months agodhikra
3 years agoluckymuki
3 years, 1 month agoMisco33
3 years agoVigneshVj
3 years ago