Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.

Have an account? Sign In

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Tech Answered Logo Tech Answered Logo
Sign InSign Up

Tech Answered

Tech Answered Navigation

  • Home
  • Tutorials
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Blog
  • Contact Us
Home / Questions /Q 776
Next
In Process
VijayK
VijayK

VijayK

  • India
  • 24 Questions
  • 0 Answers
  • 0 Best Answers
  • 17 Points
View Profile
  • 0
VijayK
Asked: September 14, 20202020-09-14T01:17:06+05:30 2020-09-14T01:17:06+05:30In: Python

What Is The OutPut Of The Following Python Program?

  • 0

Got this question as a home work. Can someone help me out?

i= 1
while True:
    if i % 0O7 == 0:
        break
    print(i)
    i += 1

programpythonpython languagepython program
  • 1
  • 2,415
  • 0
  • 0
Answer
Share
  • Facebook

    Related Questions

    • Python Program To Print Stars (*) In Different Patterns?
    • What Is The Python Program To Print The Calendar Of A Particular Month?
    • Write A Python Program To Accept A File Name From The User And Print The Extension Of The File Name.
    • Python Program To Count The Number Of Vowels In A Sentence?
    • Best Programming Language To Learn in 2021?
    • How to create a dictionary in Python
    • How Python is used in Data Science?

    1 Answer

    1. Ravi Ujjwal

      Ravi Ujjwal

      • India
      • 12 Questions
      • 68 Answers
      • 4 Best Answers
      • 242 Points
      View Profile
      Ravi Ujjwal
      2020-09-15T00:22:45+05:30Added an answer on September 15, 2020 at 12:22 am

      Hello,

      It’s output is:

      1

      2

      3

      4

      5

      6

      Explanation: The code is very simple. It’s just a loop when upon satisfying a particular condition executes the block and if not the breaks the loop and end the program. Probably you are having problem in this 0O7. When something is written with a zero and O just adjacent to it like 0O then it is said to be representing a integer into octal form. Here, 0O7 means 7. You can find octal of an integer using oct(integer).

      >> oct(1)
      '0o1'
      >>> oct(7)
      '0o7'
      >>> oct(9)
      '0o11'

      >>> oct(25)
      '0o31'

      Hope everything got cleared. Thanks!

       

       

       

      • 2
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    More Questions

    • Himasree

      What is the difference between modules and packages in Python?

    • Swathi

      how to remove indentation error in python

    • Swathi

      what is the difference between list and tuple in python

    • Vipinkv

      Python Program To Print Stars (*) In Different Patterns?

    • Vipinkv

      What Is The Python Program To Print The Calendar Of

    • Krishna Vijayan

      Write A Python Program To Accept A File Name From

    • Vipinkv

      Python Program To Count The Number Of Vowels In A

    • arunraj503

      Addition of two numbers in Python using user input example

    Stats

    • Questions 1,992
    • Answers 2,102
    • Posts 12
    • Best Answers 73

    Related Questions

    • Vipinkv

      Python Program To Print Stars (*) In Different Patterns?

    • Vipinkv

      What Is The Python Program To Print The Calendar Of A Particular

    • Krishna Vijayan

      Write A Python Program To Accept A File Name From The User

    • Vipinkv

      Python Program To Count The Number Of Vowels In A Sentence?

    • Vipinkv

      Best Programming Language To Learn in 2021?

    • Priyanka Chakraborty

      How to create a dictionary in Python

    • Priyanka Chakraborty

      How Python is used in Data Science?

    • Sidharth

      what is the code to design a doormat in python?

    Explore

    • Home
    • Communities
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Polls
    • Tags
    • Badges
    • Users
    • Help

    Footer

    Recent Comments

    • muller on how to solve export problem in kinemaster
    • muller on how to solve export problem in kinemaster
    • muller on how to solve export problem in kinemaster
    • AaronBlackburn on why can’t i find my message requests on instagram
    • shree on How to use philips citrus press juicer 25 watts Demo
    Ask A Question

    Archives

    Tags

    laptop buying guide (1) limit google news notifications (1) printer buying guide (1) stop google news notifications (1) turn off google news notifications (1)

    Social media

    © 2023 @ Techanswered.com.
    Terms, Privacy policy & Sitemap.

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.