why there has an error i tried so many time

0 votes

#Function is defined
def eq1( vi, t, a):
d = vi * t + 1/2*a* t**2

print ("The Distance Travelled is ",d)

#float type Values are taken from the user 
val1 = float(input("Enter the initial velocity: "))

val2 = 15

val3 = float(input("Enter the acceleration : "))

#function eq1 is called which returns a value 'd' calculated according to the equation eq1(val1,val2.val3)

File "<ipython-input-4-a696fb5b84fa>", line 3
    d = vi * t + 1/2*a* t**2
    ^
IndentationError: expected an indented block
Jun 28, 2021 in Python by Zahir

edited 5 days ago 10 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP