Answer:
class Cat:
isHungry = None
play = Cat().isHungry = True
eat = Cat().isHungry = False
if play:
print("I am hungry, I cannot play")
else:
play = Cat().isHungry = False
if eat:
print("I am full, I cannot eat")
else:
eat = Cat().isHungry = True
Explanation:
Just simple if and else statements.
Answer:
B. It’s always a string that matches the variable name.
A for loop is typically used in situations where the number of cycles for the loop is known before hand. One thing that uses for loops is video rendering software, it uses it to render each file and allocate each rendered file to its specified destination.
A line of code that can be inserted directly into a .rmd file is called an inline code.
R Markdown (.rmd file) is a file format that is typically used for making dynamic documents by using R Studio and R programming language. Also, R Markdown files can be used in the following ways:
- To save, organize, and document an executable code.
- To create a record of any cleaning process.
- To generate reports containing an executable code for stakeholders.
In R Studio, an inline code is a line of code that can be inserted directly into a R Markdown (.rmd file), in order to explain a process more clearly.
Read more on R Markdown here: brainly.com/question/25558534