Jump to content
silver sanths

Ajuda em script

Recommended Posts

valor = float(input())
if valor >= 0 and valor <= 25:
    print('Intervalo (0,25]')
elif valor > 25 and valor <= 50:
        print('Intervalo (25,50]')
elif valor > 50 and valor  <= 75:
        print('Intervalo (50,75]')
elif valor > 75 and valor <= 100:
        print('Intervalo (75,100]')
elif valor < 0:
        print('Fora de intervalo')


Como resolver esse erro ValueError: could not convert string to float.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.