What will you use Jupyter Markdown cells for?
Select an answer:
identifying a data type
creating a webpage
annotating the code
postponing an execution of a code section
What will you use Jupyter Markdown cells for?
Select an answer:
A. identifying a data type
B. creating a webpage
C. annotating the code
D. postponing an execution of a code section
---------------------------------------------------------------------------------------------------------
Answer:
I would use jupyter markdown cells, specially for Annotating the code. why? and why others not?
Explanation :
A. Indentifying a data type (Wrong Option): Jupyter Notebook is used with python coding mostly. To identify a data type, we have type(<data>) function , that returns the datatype of the passed argument in python. Hence Jupyter Notebook Markdown Cells are not appropriate in anyway for this purpose.
example: s = "my string"
print(type(mystr))
output : <class 'str'>
B. Creating a Webpage (Wrong Option) : Markdown cell displays the annotations and text which, We can format using markdown language. So it might somhow feels similar to HTML. But HTML pages have much more functionality and web customization capablities rather than markdown cells. Hence it is not appropriate to make web pages compeltely using Markdown cells.
C. Annotating the
code(Correct
Option): This is the best use
case for jupyter notebook markdown cells. These cells allow you to
annotate and write the Markdown
syntax. This is where
you can describe and document your coding workflow. This is why, we
call it Jupyter NOTEBOOK. Because this functionality makes it like
a notebook. All information along with code and logic.
D. Postponing an execution of a code section(Wrong Option) : You can temporarly copy-paste your code, or write your code in markdown cells, but this is not the way, to postpone the execution. To postpone execution, or to skip some quantity of code,we can use default comments inbetween the code cells. Markdown cells can be used, when you want to show the code in presentable way, but don't want to execute it.
Hence The Most Suitable Option to choose is option - C
Get Answers For Free
Most questions answered within 1 hours.