146k views
3 votes
Part 2: Code the Program Use the following guidelines to code your program. 1. Use the Python IDLE to write your program. 2. Using comments, type a heading that includes your name, today’s date, and a short description. 3. Set up your def main(): statement. (Don’t forget the parentheses and colon.) 4. Use at least two variables and two print statement to display your message to the screen. 5. Conclude the program with the main() statement. 6. Follow the Python style conventions regarding indentation in your program. 7. Run your program to ensure it is working properly. Fix any errors you may observe. Example of expected output: The output below is an example of a “Favorite TV Show” message. Your specific results will vary depending on the choices you make about your message. Output My favorite TV show is MythBusters. I like it because I learn a lot and they do crazy experiments. When you've completed writing your program code, save your work by selecting 'Save' in the Python IDLE. When you submit your assignment, you will attach this Python file separately.

User Belen
by
4.2k points

1 Answer

6 votes

# Replace this with your name, date, and a short description

def main():

x = "My favorite book is python for dummies."

y = "I like it because it introduces new python topics."

print(x)

print(y)

if __name__ == "__main__":

main()

User Emem
by
3.7k points