Computer Science, asked by 9582763871, 10 months ago

Write is the output of following code If 4+5==10 Print ("true") Else: Print ("false") Print ("true")

Answers

Answered by 201291MS
0

The output will be false true.

  • Use if to specify a block of code to be executed, if a specified condition is true.
  • Use else to specify a block of code to be executed, if the same condition is false.
  • Since, 4+5 = 9 therefore it does the not return true in the if the condition and will be passed to the else part. Here it will print false true.
Answered by ZareenaTabassum
0

The output of the code is:

FALSE

TRUE

  • Python will print the output as FALSE from within the else-block (since 5+4 does not equal 10) and TRUE after the if-else statement is finished.

  • Python is a competent general-purpose programming language.
  • It is used in web development, data science, and the creation of software prototypes, among other things.
  • Python, fortunately, provides a straightforward, easy-to-use syntax for beginners.
  • Python is thus a good language for novices to learn to program with.

SPJ3

Similar questions