Fahrenheit to Celsius

Task There are two widespread systems of measuring temperature - Celsius and Fahrenheit. First is quite popular in Europe and second is well...

Task

There are two widespread systems of measuring temperature - Celsius and Fahrenheit. First is quite popular in Europe and second is well in use in United States for example.

By Celsius scale water freezes at 0 degrees and boils at 100 degrees. By Fahrenheit water freezes at 32 degrees and boils at 212 degrees. Use these two points for conversion of other temperatures.

You are to write program to convert degrees of Fahrenheit to Celsius.





Input data contains N+1 values, first of them is N itself (Note that you should not try to convert it).

Answer should contain exactly N results, rounded to nearest integer and separated by spaces. 

Test Data : 37 276 135 360 149 304 190 223 335 97 414 418 108 228 531 565 425 236 210 584 512 164 122 367 302 461 57 101 54 435 482 438 110 586 197 228 290 356

Program

a = '37 276 135 360 149 304 190 223 335 97 414 418 108 228 531 565 425 236 210 584 512 164 122 367 302 461 57 101 54 435 482 438 110 586 197 228 290 356'

ls = a.split(' ') lists = [] for i in ls: lists.append(int(i)) for j in lists[1:]: print(round((j-32)*5/9), end=' ')

COMMENTS

Name

Accident Alert,1,AI,2,Array,1,Aurdino,1,C,2,Computer Graphics,9,Data Science,3,Dataset,1,Decoratot,1,Django,1,ESP32,1,Fixed point/iteration method,1,Greater or smaller,1,html,1,Image Processing,1,JAVA,1,Javascript,22,Machine Learning,1,Matlab,3,Numerical Method,13,OOP,1,Other,3,PHP,1,Point operation,1,Python,11,Raspberry pi,1,Recommendation System,1,Regression,1,Reservation System,1,Robotics,1,Simulation,2,sine wave,1,String Handling Function,1,Web scrap,1,Webpage,1,
ltr
item
COMPUTER PROGRAMMING: Fahrenheit to Celsius
Fahrenheit to Celsius
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv-reStu_2vlR1EpiCAHXOgQfU_euekTeQjS3_zy_9JlImEH-04c9ZLpXjx-nUwzKFYOFHRqzLARrfdQdXzW0RPRp3r_pJDgv3Iu8pRsUaEpNsN7EvRr4PQIbyL1v3JpPE0IrmCsRt-KzE/s320/ftc.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv-reStu_2vlR1EpiCAHXOgQfU_euekTeQjS3_zy_9JlImEH-04c9ZLpXjx-nUwzKFYOFHRqzLARrfdQdXzW0RPRp3r_pJDgv3Iu8pRsUaEpNsN7EvRr4PQIbyL1v3JpPE0IrmCsRt-KzE/s72-c/ftc.png
COMPUTER PROGRAMMING
https://computerprogram4ru.blogspot.com/2020/01/fahrenheit-to-celsius.html
https://computerprogram4ru.blogspot.com/
https://computerprogram4ru.blogspot.com/
https://computerprogram4ru.blogspot.com/2020/01/fahrenheit-to-celsius.html
true
8672391763020279633
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy