Syntax, Runtime and Logical Errors in Python

Sdílet
Vložit
  • čas přidán 28. 08. 2024

Komentáře • 43

  • @59xthepain87
    @59xthepain87 Před 4 lety +53

    syntax error- 0:18
    runtime error- 2:30
    logical error- 5:55
    :)

  • @user-zu4ft8yw9e
    @user-zu4ft8yw9e Před 4 měsíci +2

    There are three main types of errors in Python: syntax errors, runtime/exception errors, and logical errors. Syntax errors occur during code writing and can be identified by the Python interpreter. Runtime errors, also known as exceptions, occur during program execution due to unexpected conditions. Logical errors affect the program's logic and can lead to unpredictable results. Problem-solving involves debugging syntax errors during coding, handling runtime errors by understanding exceptions, and fixing logical errors by reviewing the program's logic.

  • @THEMilkSHAIKH
    @THEMilkSHAIKH Před 4 lety +11

    Good to the point explanation with examples. I have similar problems on my Final Exam.

  • @squigglyunicorn7777
    @squigglyunicorn7777 Před 4 lety +14

    Thank you, very helpful for young and/or inexperienced programmers.

  • @unholymosque
    @unholymosque Před 9 měsíci +1

    This was very helpful for my introduction to computing exam. Thanks

  • @ankitasingh9795
    @ankitasingh9795 Před 3 lety +2

    This video has really helped me clearing my doubts..thanks 😊

    • @learnlearnscratch
      @learnlearnscratch  Před 3 lety +1

      Thank you, I'm glad you like it! If have any requests for videos let me know 🙂

  • @BookofYAH777
    @BookofYAH777 Před 3 lety +4

    you made a syntax error at 3:03 when you wrote "Theres are"

  • @angelabeckman9203
    @angelabeckman9203 Před 4 měsíci

    Man, that's tragic about the Mars orbiter! Anyway, thanks for the info it was helpful.

  • @DKAl-vc1rm
    @DKAl-vc1rm Před 4 lety +2

    In python naming the print function wrong (i.e. prnt) is actually a NameError, which is a kind of a run time error and not a syntax error.

  • @mohammadraza2491
    @mohammadraza2491 Před 2 měsíci +1

    Thank You

  • @nayefhaque7401
    @nayefhaque7401 Před 4 lety +1

    Process " program 1" is running.
    Program 1 is not allowed to run in parallel. Would you like to stop the running the running one?
    Every time when i try to run a code this problem occurs, how can i solve this problem? Please someone help

  • @user-pc8gk7tq2y
    @user-pc8gk7tq2y Před rokem

    Can any one tell me why in age he put age=int() and in the temp. He put it like temp.=int(input(
    What is the difference

    • @learnlearnscratch
      @learnlearnscratch  Před rokem

      When you use input() it returns a string . E.g "4" , which isn't a number to the computer. You need to cast it(convert it) as an integer so it becomes 4 instead of "4" (notice the lack of speech marks)

    • @user-pc8gk7tq2y
      @user-pc8gk7tq2y Před rokem

      @@learnlearnscratch thanks i understand it then no difference between them i can use the two ways but i feel confused about len() why we use it I'm totally beginner and didn't understand it

  • @VJ-yk9dk
    @VJ-yk9dk Před 4 lety

    Great explanation ❤👌

  • @destined0645
    @destined0645 Před 4 lety

    why do we use parenthesis in python

  • @highestonthemoon417
    @highestonthemoon417 Před 2 lety +1

    thank you!

  • @nitinvadel849
    @nitinvadel849 Před 4 lety +1

    Thankyu sir

  • @pilyotuts
    @pilyotuts Před 3 lety

    hello, can you help me?? cuz i dont have too much background in coding i tried to code and it put except RuntimeError as e: but i get an syntaxerror: invald syntax at that line

  • @pravallikavicharapu1874

    1+2++3+4+5 which type of error is this???

  • @bryan4592
    @bryan4592 Před 2 lety

    Amazing amazing amazing 👌

  • @janelsamuels8411
    @janelsamuels8411 Před 3 lety

    Ty

  • @ahsaninam2130
    @ahsaninam2130 Před 3 lety

    thanks so much

  • @VinaySharma-eg7di
    @VinaySharma-eg7di Před 2 lety

    Beautiful;

  • @dimuthupraboda4866
    @dimuthupraboda4866 Před 2 lety

    thams

  • @michaelcarcarsies4190
    @michaelcarcarsies4190 Před 4 lety +3

    “Noobs”

  • @ScienceCodeCreations
    @ScienceCodeCreations Před 4 lety

    Press F to pay respects for Ariane 5 and Mars Climate Orbiter.