1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
zavuch27 [327]
4 years ago
13

6.5 Code Practice: Question 1

Computers and Technology
2 answers:
madam [21]4 years ago
6 0

Answer:

i dont know

Explanation:if i is a letter and dont is a word idk

vaieri [72.5K]4 years ago
4 0

Answer:

# input the number of temperatures required, which will be 10 here, but the user can print any number.

n=input("Enter the number of temperatures you want")

# create a list which can have n temperatures since it starts from 0, the maximum is n-1, and n needs to be converted to an integer.

temp= [0,int(n)-1]

#declared a variable of float type. As its 0.0 it will be a float, if 0 then integers, and so on

s=0.0

#running a for loop n times, and hence 0 to n-1.

for i in range(0, int(n)):

temp[i]=input("Enter the temperature in degree celsius in float")

s=s + float(temp[i])

i=i+1

print("The sum of the temperatures is:{0:0.1f}", +s)

Explanation:

The question from edhesive is: You need to write a program that calls for ten temperatures and then find the sum of temperatures. The temperature should be in float, which is expected. And the program is as being mentioned in the answer section.

You might be interested in
Guys i really need help pleasure?
miskamm [114]

How many copies to print is one of several choices
you can indicate in the print dialog.


7 0
3 years ago
Read 2 more answers
How do you access the dark web? What are the negatives of doing this?
Inessa05 [86]
The dark web is illegal and therefore people can hack you, obtain your information (identity theft) etc.
6 0
3 years ago
What is the Rocker-Bogie System?
Dovator [93]

Answer:

The Rocker-Bogie System is the suspension arrangement developed in 1988 for use in NASA's Mars Rover Sojourner and which has become NASA's favored design for rovers.

Hope that this helps!

4 0
3 years ago
Write a program that inputs a text file. The program should print the unique words in the file in alphabetical order. Uppercase
satela [25.4K]

Answer:

Read the file and save it to a variable as a string, split the string variable and cast it to a set object using the set function to get the unique words in the file. Then use the max function with the key attribute to use regular expression module "re" to compare the first letter of each item to return in a list comprehension or append to a list.

Explanation:

The open function is used to import a file in python, the split string method splits the string to a list of items and the set function removes any duplicates of a word or item.

Using the for loop statement, iterate over the items and compare and return the items in alphabetical order with the 're' search method getting the item with uppercase letters with higher precedence than lowercase.

5 0
3 years ago
1. Write a statement that opens the file Customers.dat as a random access file for both reading and writing.
KengaRu [80]

Answer:

Explanation:

In Python you need to give access to a file by opening it. You can do it by using the open() function. Open returns a file object, which has methods and attributes for getting information about and manipulating the opened file.

https://eecs.wsu.edu/~cs150/tutorial/file/code11_3.html

Look at this link it may help.

3 0
3 years ago
Other questions:
  • Under the guise of justice, some less scrupulous administrators may be tempted to ____________________, or hack into a hacker’s
    12·2 answers
  • About how many people live in mexico city A. 9M B. 5M C. 11M
    7·1 answer
  • What is meaning of reboot
    7·2 answers
  • Global knowledge is the same as common knowledge.
    15·2 answers
  • They have requested a 1- to 2-page memo that describes the hospital's protections against a ransomware attack.
    10·1 answer
  • What is the first step in finding a solution to a problem
    13·1 answer
  • Help please answer the question 1 2 3 4 5 6<br><br>help
    12·1 answer
  • One of the difficult things about working in game design is that while there are many different roles, most of them only match o
    15·1 answer
  • What is the main coding language for netflix?
    14·2 answers
  • Assume you have written a method with the header num yourMethod(string name, num code). The method's type is ____ .
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!