Answer:
books.append({5:2})
Explanation:
got it right on edge 2020
Answer:
- num1=10
- num2 =20
- num3="30"
- sum = num1+num2+num3
- print (num1)
- print (num2)
- print (num3)
- print (sum)
The error is at line 3. The variable num3 has been assigned a string value with use of the quotes.
To fix the error, take away the quotes from the number 30, since the arithemetic operation cannot be carried out on the string in python program language.
Explanation:
Answer: 2, 3, 6, 8
Explanation:
i must tell you something very important.
in LISTS.... the FIRST thing is marked with a 0.
[0, 1, 1, 2, 3, 6, 8, 13, 21, 34]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
do you see how these line up with each other?
the output would be 2, 3, 6, 8
Answer:
Explanation:
The diagrams attached to the questions are shown in the first and the second image below. The first image shows the code and the second image shows the error that appears at the moment of running it.
To answer that ; We will notice that the error in the second image is what it says; what happened is that the individual subject performing this action is trying to to open the file called "h.txt", but the python interpreter is unable to find the file. The individual subject will need to have h.txt inside your current working directory for python to open it.
From the third image attached ; I have careful attached an image that illustrate how you can add the file by going to file → open (right from your jupyter notebook). Afterwards you can either upload the file, or create a new text file and paste the contents on it as displayed in the fourth image attached in the diagram below.