In Python let say i have a file with temperature data:
+61.0°C +63.0°C +50.0°C +58.0°C
and i want to remove the + and the °C and print the file with out it
******************************************************************************************
Please Upvote the answer as it matters to me a lot :)
*****************************************************************************************
As HOMEWORKLIB RULES expert answering guidelines,Experts are supposed to
answer only certain number of questions/sub-parts in a post.Please
raise the remaining as a new question as HOMEWORKLIB RULES
guidelines.
******************************************************************************************
f= open("input.txt")
line = f.readline()
line= line.replace('+','')
# print(line)
line= line.replace('°C','')
print(line)

In Python let say i have a file with temperature data: +61.0°C +63.0°C +50.0°C +58.0°C and...
Python question When reading and writing into a file. Say i want to read in input using a file called input.txt and then do something. Then i want to output the results to an additional file called output.txt. i have seen ouput.out or results.out used and not .txt. What is the difference? When would you use .out and not .txt? thank you
IN PYTHON I want a program that prints a text file and cleans a sequence of letters that are repeated in the program. Then, print only the unique letters or words THIS IS THE TEXT FILE: https://courses.alrodrig.com/4932/dubstep.txt I want to eliminate the words BOOTYBOUNCE and print the other word
how to check enums in C let us say I have the following enum: enum days{ MONDAY, SUNDAY, THURSDAY } ; I want to check if a struct that contains this enum has a valid value for example typedef struct { int date; enum day name; } complete_date; so now I want to check if a complete_date has a valid enum it can only be valid if it is MONDAY,SUNDAY, OR THURSDAY. i want to assert that becuase if it...
using python file and screenshot the file that show up is correct Your input data for each application is: 7 1 8 9 4 2 5 10 6 3 Treat this data as integer data type. Push onto and pop off of each of the input items onto a stack implemented in Python. Identify the item 4 when it is popped off of your stack. 2. Feed this same input data into a Queue implemented in Python. Identify the...
If I have a function in python, say show(B), how would I code it so that if B is a list like [3,3,4,0,0,8,2,0,0,5], it should return the elements in B that are not in range(len(B)). So the length of B in the given example is 10 so the range is from 0 to 9, so we want to return [0,1,2,5,6,9] since these are the values not in B. Thanks
# python I have a data frame with a column of time stamp, and there are many rows in it, the time format looks like this:2016-06-25 23:59:52 How can I change this into:2016-06-25 23:00:00, which means remove all the minutes and seconds, only preserved data and hours
in python im trying to get this to print to the file i it created def calculateTotal(): filename = input("Enter a name for the file : ")#ask users for a name for file no_of_students = int(input("Enter the number of students in class : ")) data = [] with open(filename,"w+") as f: for index in range(no_of_students): grades = input("Enter Name of student plus grade :").split() # store the student data in array "data" data.append(grades) # store the total grades in "total"...
Write this in Java. say i have a file called "file.txt" that looked like this: Dunn Sean 31111 Duong Geoffrey 29922 Fazekas Nicholas 31100 Prezioso Stefano 22223 Puvvada Mohana 11224 and i have an object class called Student, with three String fields lastName, firstName, and ID. i want to read in file.txt from another class (preferably using BufferedReader) and store each line in the file as a Student in a Student array (example: first line gets stored as ("Dunn" ,...
Use the Matlab to solve this
one, please!
Task 4 Download the temperatures.txt file from Moodle. The file contains temperature data which has beern collected once a day and contains noisy data. Write a MATLAB m-file that performs the following: Read the temperature values from temperatures.txt into a vector A. B. C. Plot the temperature against time using red diamond markers. Without using loops, remove the noisy data using the following rules: I Any temperature value above 45°C is invalid...
Using C# or Python, write a code that reads a Microsoft Excel CSV file named "LabAssignment" then outputs all the collected and formated data as another Microsoft Excel CSV file named "labOutput" The CSV file contains 25 colums as well close to 200 rows of data. Write a code in C# or Python so that: It removes all unwanted columns along with its data...the columns that should be kept have the following header: "User" "Location" "Feature" "HoursUsed" Remove all files...