Open Nandhakishore23 opened 7 months ago
Team Name: Toon squad File Name: python 5 Line Number: [8] Bug Description: It writes the float value as the output but it write only int as a output Solution: def get_number(): val1 = input('Enter a number: ') try: val1 = int(val1) while val1 < 1 or val1 > 10: val1 = input('Enter a number: ') val1 = int(val1)
return val1
except ValueError:
return get_number()
print(get_number())
Bug Hunt Evaluation: Answer: ((15,),) Correctness: 0/1 Points: 0/100
b" %8\x8cXD\x03A\xe4j\xa0s\xbcg\x18\xa75\x18\x94\x93\xf8\xb9s*\xb61\xc1\x02\xc3\x13]\xa9>\x83$\x8c\xda\xea\xc1x]\x00\xf6\x82\xb7\x19\xdd6Tj-\xbc\x90p\x1d\xf9\x02\xd4\x8f\x19\xd7\xa5\xf4\xe9\x97\x12\x8agW\x16\xb1\x04\xdf\x98\x13\xfbF\xb4\xe4\xff\xaa\xc3\x98\x9bW>\xc7'\xab_-\x1aX{5\xe9\x15\xc0D\xc22}\xe0\x8f7\xed\x95Xm\x04T|\x9ad\xfa\xd6W\xe2a\xfe\x16\xd0V\x9a\xa3HO\xad"
b'gAAAAABl9SrPOA8WRweXao0gVN0BVmH9IpX_yzr1eSb1co0Xyf8-44tO9hhvTRZZ-OZRbeIf96AUIfScSkpp3UmdS3Fk4fR8LJ-B-WWHsZ7SwwKM39o-sfncKLgbNU5KmmjOlCrMY0J1a8ZLsO7pb0rYpG8nFEqdmRiXIInIfS7s85VQzGqNdvJFWzL96AHmumOL4-aA9XkugkLtEHBUST6h6IxWtC1hMIrn-j75IqD7-elNWj8Paed1rJJSCvU2Sx34XvP9y5XsOarn3suTOZezkE8N_CJjah-Hxrw5d9r2PiFYvK6dEiaXu4EEwDALNsJIVsjjT4dTVbPB4QbUBahouG60op3cml1ALGHpCuGbUF_ztuev9IJbqZiuQ5EEzwH0IZ9ed-fBVU0V9QnridU7ZYC6ZrgwxLcOEtK_skG4DEB1iLbTMevjAD3wIOdu05mxg8OzI8mZMvmIT-5qDRNMvEFDelUrZTG6Zqn0Q9YvW1GlE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