menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
What is the output of the following Python program? try: fin = open('answer.txt') fin.write('Yes') except: print('No') print('Maybe')
asked
Sep 10, 2021
78.8k
views
4
votes
What is the output of the following Python program? try: fin = open('answer.txt') fin.write('Yes') except: print('No') print('Maybe')
Computers and Technology
college
IrfanRaza
asked
by
IrfanRaza
8.3k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
3
votes
(<
ANSWER RETRACTED>
)
Uri Barenholz
answered
Sep 15, 2021
by
Uri Barenholz
8.6k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
May 13, 2021
231k
views
Consider the following Python program. fin = open('words.txt') for line in fin: word = line.strip() print(word) What is word? a. A file object b. A list of characters c. A list of words d. A string that
Patrick Altman
asked
May 13, 2021
by
Patrick Altman
8.3k
points
Computers and Technology
college
1
answer
5
votes
231k
views
asked
Mar 6, 2024
167k
views
Snpf = open("SNP1.txt", "r") line = snpf.readline() while line: print(line) line = snpf.readline() () Please rewrite this Python code using loop function to print out all lines.
Ilya Suzdalnitski
asked
Mar 6, 2024
by
Ilya Suzdalnitski
8.5k
points
Engineering
high-school
1
answer
3
votes
167k
views
asked
Jul 27, 2024
160k
views
USING PYTHON Open a file my_file.txt for reading. Read the numbers in the file using a for loop Determine the average of all the numbers in the file and print it to console, rounded to two decimal places.
Chase Huber
asked
Jul 27, 2024
by
Chase Huber
7.4k
points
Engineering
high-school
1
answer
1
vote
160k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Disadvantages of using animation in advertising? advantages and disadvantages of using animation for education? advantages and disadvantages of using animation in entertainment?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org