Coding Exercise for Beginners in Python with solution |Exercise 19 | Python for Beginners #lec58

preview_player
Показать описание
In this Lecture we have written a Program in Python to solve a coding exercise "Hurdle Race" using while loop. In this we have used some in-built functions as well as user-defined functions and while loop

*********************************************

Connect & Contact Me:

*******************************************

More Playlists:

#coding #pythonforbeginners #python #jennyslectures #pythonprogramming #codingquestions
Рекомендации по теме
Комментарии
Автор

Hi mam because of you I am Rocking in my class mam thank u so much mam I know thanks is very small to express my gratitude

nutritionist
Автор

gamification of learning python cool concept and nice website

misternegative
Автор

I think we can reduce the code by 1 more line to 16 lines by adding a for loop while defining turn_right to do turn_left 3 times.

nevaancarey
Автор

def turn_right():
turn_left()
turn_left()
turn_left()

def jump():
turn_left()
move()
turn_right()
move()
turn_right()
move()
turn_left()

while not at_goal():
if front_is_clear():
move()
else:
jump()

saisrinivaskarlapudi
Автор

Thanks for sharing.
More contents to come ❤

gateq
Автор

1st time in my life I am using this phyton and I found this code running everything in any situation .. By just removing for loop to while loop. 😂

fanwritex
Автор

mai to Data structure dekh raha hu, very helpful playlist

parveenbhullar
Автор

You are doing such an excellent job, keep up the great work!♥

MyCodingDiary
Автор

Mam please complete the c++ course playlist of yours 🙏

akashyadav
Автор

def turn_ri8():
turn_left()
turn_left()
turn_left()

def jump():
turn_left()
move()
turn_ri8()
move()
turn_ri8()
move()
turn_left()

while not at_goal() :
if wall_in_front():
jump()

else:
move()

MARUTHU_
Автор

def turn_right():
turn_left()
turn_left()
turn_left()
def jump():
turn_left()
if wall_in_front():
turn_left()
move()
turn_right()
if wall_in_front():
turn_left()
else:
move()
turn_right()
move()
turn_left()
while not at_goal():
if right_is_clear():
turn_right()
move()
turn_right()
if wall_in_front():
jump()
else:
move()

umairmughal
Автор

Mam ek aur solution ho skta..1 hr lg gya but yeah i did it on my own
def right():
turn_left()
move()
turn_left()
turn_left()
turn_left()
move()
turn_left()
turn_left()
turn_left()
move()
turn_left()

while not at_goal():
if front_is_clear():
move()
else:
right()

PRIYANSHUCHAKRABORTY-yvmq
Автор

why While not at_goal(): # here Not means what?

adamyagogreen
Автор

Are you copying Angela Yu's course from udemy ?

vowelS-ccpg
Автор

How to solve this Reeborg shouts error?

ashwinimogaveera
Автор

Mam ..operating system is a completed course or not

nasirulislamofficial
Автор

Mam ...
I'm trying to reach the website in Google but I can't find hurdle race exactly....😶

May l get any solutions for this...

hemab