CTRL/CMD + B (BOLD)
CTRL/CMD + U (Underline)
CTRL/CMD + ] or [ (change font size)
Answer: For loop
Explanation:
Using the for loop we can get the exact number of values/outcomes we require.
For example: printf(enter 20 numbers");
for(int i=0; i<20;i++)
{
scanf("%d", &number);
}
So, this is an implementation of for loop in C. Using it we can enter exact 20 numbers not less or more than that.
Therefore, for loop is the answer.
Answer:
class Phone(object):
def __init__(self, model, partNumber, retailPrice):
self.model = model
self.part_number = partNumber
self.retail_price = retailPrice
def phone_specs(self):
print( "Phone model: {}\nPart number: {}\nRetail price: {}".format( self.model, self.part_number, self.retail_price))
phone1 = Phone("Nokia", "asd234", 200.0)
phone1.phone_specs()
Explanation:
A class is a blueprint of a data structure used to create objects of the same data types and methods. The Phone class is an object that creates an instance of the phone1 object. The phone_specs method is used to display the details of the phone1 object.