Ad

Thursday, June 25, 2020

Guess The Output : Python Series

Grow your programming skill by guessing the correct output of the following programs and if your having problem by guessing the correct answer write the program in your IDE and produce the output it will help you to grow your skill 

Programs

Program 1:-

  • s = "Rooose"
  • v = {i for i in s}
  • print( len(v))

Program 2:

  • fruits = "7"
  • fruits = fruits + "0"
  • eggs = int(fruits) + 3
  • print(float(eggs))

Program 3:

  • x = 5
  • def add():
  • x  = 3
  • x = x + 5
  • print(x)
  • add()
  • print(x) 

Hope this article helps you. If you have any suggestion Drop it in Comment Section and Join Our Family by Clicking Subscribe Button and For More Article/Post Like this Join us on:-


Other Important Links:-




No comments:

Post a Comment

Please do not enter spam link in the comment box.