79356960

Date: 2025-01-15 03:11:11
Score: 1
Natty:
Report link

Can you put an f before your f-string's brackets to see if it works then?

Ran this code over here with python3 and it worked:

number = float(input('blabla \n'))
number = float(f"{number:.2f}") # f"{fstring formatting here}"
print(number)
print(type(number))

Output:

blabla 
0.556
0.56
<class 'float'>
Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: Luigi Carvalho