Body {
color:blue;
}
h1 {
color:blue;
}
These will change both the h1 and the body fonts to blue.
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.
Answer:
for i in range(56,71):
print(i)
Explanation:
By the range 56 to 71 it means that for loop will run when i=56 to i=71, but the upper bound is one less than the upper bound, and which is 70. So the above loop will print integers from 56 to 70.
And the above code is in Python.
Answer:
The # marker is used to mark a line comment in python.
Explanation:
The line that starts with # is a comment.Python will ignore the lines that starts with #.These comments can be used to add extra information in the python code.
For example:-
Following is the python code with comments.
names=['sam','optimus','bumblebee'] #names is the list of transformers characters.
for i in names:
print(i) #printing the names.
There are 2 comments in the python code written above.These are ignored by python.