Answer:
it's helps out the community
The output for; for i in range(1,6): if i==3: print('hello') break else: print(i) print('done') the output for the given Python program is 001020340.
<h3>What is range () in Python?</h3>
The python range() function creates a collection of numbers on the fly, like 0, 1, 2, 3, 4. This is very useful, since the numbers can be used to index into collections such as string. The range() function can be called in a few different way.
- The given program is as:
- i =0
- while i < 5
- print(i)
- i +=1
- if i==3 :
- break
- else:
- print(0)
- It will give the following as result 001020340
- Hence, the answer is 001020340.
Read more bout the python :
brainly.com/question/26497128
#SPJ1
Answer:
6227020800
Explanation:
For the first object there are 13 to choose from, for the second there are 12 left, etc. so the total number of possibilities is
13x12x11x...x1 = 13! = 6227020800
Answer:
grade = int(input("What grade are you in?")
if grade == 9:
print ("Freshman")
elif grade == 10:
print ("Sophomore")
elif grade == 11:
print ("Junior")
elif grade == 12:
print ("Senior")
else:
print ("Invalid")
Explanation:
You fail to provide the complete code. So, I will rewrite the code from scratch
The complete question requires that the level is printed based on the input grade.
The code has been added in the answer section.
The explanation is as follows:
[Thus gets input for grade]
grade = int(input("What grade are you in?")
[If grade is 9, this prints Freshman]
if grade == 9:
print ("Freshman")
[If grade is 10, then level is sophomore]
elif grade == 10:
print ("Sophomore")
[If grade is 11, then grade is Junior]
elif grade == 11:
print ("Junior")
[If grade is 12, then level is senior]
elif grade == 12:
print ("Senior")
[All other inputs are invalid]
else:
print ("Invalid")