Answer:
my explanation is above my comment :)
Explanation:
Answer:
ayo fam
Explanation:
I dont think this is supposed to be here lol
Answer:
Answered below
Explanation:
Some variable naming conventions include;
1) Variable should begin with either a letter or an underscore.
2) Variables having multiple words should have the first letter of every word after the first word, capitalized. This is the camelCase style.
3) variables should not be named after any of the inbuilt keywords except on special operations to override the original function of such keyword.
4) variable names are case-sensitive.
The importance of following these conventions is to maintain readability and consistency of code. Failure to follow these conventions may lead to chaotic codes, bugs and inefficient performance.
Answer:
numbers = []
for i in range(3):
numbers.append(eval(input("Enter number: ")))
print('Sum is:', sum(numbers))
Explanation:
You want to use a loop to prevent repeating your code.
<u>Answer:</u>
<em>feetFab1 = int(input(""Enter the value in feet for the 1st piece of fabric: ""))</em>
<em>inchFab1 = int(input(""Enter the value in inches for the 1st piece of fabric: ""))</em>
<em />
<em>feetFab2 = int(input(""Enter the value in feet for the 2nd piece of fabric: ""))</em>
<em>inchFab2 = int(input(""Enter the value in inches for the 2nd piece of fabric: ""))</em>
<em />
<em>feetSum = (feetFab1 + feetFab2)</em>
<em>inchSum = (inchFab1 + inchFab2)</em>
<em />
<em>totalFeet = ((inchSum % 12) + feetSum)</em>
<em>totalInch = (feetSum % 12)</em>
<em>print (""Feet: "" + str(totalFeet) + "". Inches: "" + str(totalInch))</em>