Answer:
Option 2: Variable names can not begin with a number.
Explanation:
As given Mark and John named a variable as 24_hour_mart while writing a program in python.
While it is forbidden to name a variable starting with any digit, only alphabets (capital and smaller) and underscore can be the first letter of the variable name.
Moreover, by considering the other options given:
- Variable name can include the underscore (_) between the words. It is used instead of spaces that are not allowed.
- There is no upper limit for variable length, it can be of any reasonable length and more than 10 characters say 11 or 12 are reasonable.
- There is no lower limit for variable length, it can be any reasonable length , even it can be of 1 character.
Variables named in python language must not be the keywords as they are reserved for other purposes.
i hope it will help you!
Answer:
1. Microsoft Excel helps data analysis through different spreadsheet queries and operations options.
2. Input data to the analysis of sales by product is required for the development of formula and extracting results.
3. The information of data source and frequency of report is required to start the work.
Explanation:
1. Microsoft Excel tool can be used to calculate the results of equipment. Obtained results can be displayed in charts and graphs from the excel.
2. Information like the quantity of sold items, remaining items are required to produce accurate, useful analysis.
Before starting assignment accounting manager will be asked the following questions.
1) Where does the input data come from?
2) Is analysis required on a daily basis or once for all provided data?
3) Is Summary is in the form of tabular data, Graphical data, or Both?
The answer to your question is A. blogs
Answer:
def max_magnitude(user_val1, user_val2):
if abs(user_val1) > abs(user_val2):
return user_val1
else:
return user_val2
if __name__ == '__main__':
n1 = int(input("Enter the first integer number: "))
n2 = int(input("Enter the second integer number: "))
print("The largest magnitude value of", n1, "and", n2, "is", max_magnitude(n1, n2))
Explanation:
Answer:
Option(d) i.e "storing a float in an int" is the correct answer for the given question.
Explanation:
- Typecast is used for the changing the one datatype to the another datatype Their are two types of casting
1 implicit
In this typecast we change the smaller datatype into the larger datatype.
For example
int to float
2 Explicit
In this typecast we change the larger datatype into the smaller datatype in an explicit manner.
For example
float to int.
- in the given question we required the casting in the option(d) i.e "storing float in an int" That's why this option is correct and all other options are incorrect.