Take this one step at a time. Your teacher has given you the code for step 1. Now write step 2. Then 3, and so on.
For step 2: if you're using Python v2.x you'd use a line like
guess = int( raw_input( "Take another guess: " ) )
For Python v3.x it would be:
guess = int( input( "Take another guess: " ) )
Break it down into small pieces, it's not a complicated assignment.
Answer:
It create a new file in which writing of data begins.
Explanation:
A file can be open in the three mode:
-r (Read mode): open an existing file for the purpose of reading data from it.
-w (write mode): Create a new file for the purpose of writing data to it.
-a (append mode): open an existing file for the purpose of appending extra data to it but if the file does not exist, it create a new file and start writing data to it.
Explanation:
Communication helps the management to know what the organisation wants and how it can be performed. Through effective way of communication it promotes the industrial peace and good relations. 7. ... It enables the management to take managerial decisions which depends upon the quality of communication.