Python Programming Tutorial - 20: Application of Break Statement

preview_player
Показать описание
In this tutorial we'll check out an interesting application of the Break Statement in Python.
Рекомендации по теме
Комментарии
Автор

good sir! very clear in explanation keep on going

anuragyelala
Автор

why we are using str conversion .
input() function already convert it into string.????

vandanajain
Автор

sir can u please tell what's the use of "true" with while???

ROYAMREN
Автор

In my case.. when I am asked to 'enter a digit', if I enter an alphabet a then I get an error...But if i enter 'a' then the program runs just fine. The same goes for any digit that I enter.. If I enter just 6 then an error is thrown, if I enter '6' then the program executes

SiddharthSinghFiery
Автор

Why dont we use the variable num to check its ASII value instead of creating another variable var and then we are converting it to str ..?? Don't makes sense to me . Please explain .!!

tarunsinha
Автор

same problem input() is not working in linux terminal...please help

solankisagar
Автор

Good tutorials! Aside why to use var = str(num) ? input() itself returns str and type(num) is <class 'str'>

sr
Автор

your voice was good in other videos did you use another mic or some other device
coz it's changed a lot but I liked the previous one (in the starting)

devarajakhilmatta
Автор

Have you considered changing your name to "The Out-Of-Date Bad Tutorials"? :)

possiblefuturebrains
Автор

i don't understand the using of "true"

mightyelf
Автор

we donot need to make this var=str(num).
the complete program is given below:

while True:
print("Enter a digit")
num=input()

if (ord(num))in range(48, 58):
break
print("you are good")

s.m.ehsanulamin
Автор

var=sumthing this statement is vague and no sense

kannu
visit shbcf.ru