Fahrenheit And The reciprocal conversion of centigrade temperature

The formula : Celsius ℃=5/9(°F-32)  Fahrenheit °F= ℃×9/5+32

# -*- coding: UTF-8 -*-
num=input(' Enter the temperature in centigrade :')
num = int(num)
b=num*9/5+32
print(' Convert to Fahrenheit :',b) num1=input(' Enter Fahrenheit temperature :')
num2 = int(num1)
a=5/9*(num2-32)
print(' Convert to centigrade :',a)

result

Mad Libs game , More about Fahrenheit and centigrade conversion

  1. Mad Libs game & Fahrenheit to centigrade

    Mad Libs game animal1 = input(" Please enter an animal ") animal2 = input(" Please enter an animal ") movement1 = inp ...

  2. Mad Lids game Fahrenheit to centigrade conversion

    name1 = input(' Please enter a name :') name2 = input(' Please enter a name :') vehicle = input(' Please enter a car :') print('\n In modern history {} Just after class , ...

  3. Mad Libs game : be familiar with python Programming environment , Basic input and output

    Mad Libs game : Code : name1=input(" Please enter a name :") name2=input(" Please enter a name :") print("{} just now ...

  4. Understand the characteristics of big data 、 Source, data presentation and usage Python Write Mad Libs game

    The requirements for homework come from :https://edu.cnblogs.com/campus/gzcc/GZCC-16SE2/homework/2620. 1. Browse 2019 Analysis report on various big data of Spring Festival , for example : This world , Again ...

  5. Mad Libs game

    One . Simple input and output Enter the code name1=input(' Please enter a name :') name2=input(' Please enter a sentence :') name3=input(' Please enter a location :') name4=input(' please ...

  6. Input , Output and Mad Libs game

    name1=input(' Please enter a name ') name2=input(' Please enter a name ') car=input(' Please enter a car ') print(' Hungry {} notice {} Riding in third class armour {} Down the hill '.form ...

  7. Input 、 Output and Mad Libs game .

    name1=input(' Please enter a name :') name2=input(' Enter another name :') time1=input(' Please enter a period of time :') print('{}, It's a fool ,{},{} I can't eat chicken '.for ...

  8. Input 、 Output and Mad Libs game

    name1=input(' Please enter a name :') name2=input(' Enter another name :') time1=input(' Please enter a period of time :') print('{}, It's a fool ,{},{} I can't find Xiaoli '.f ...

  9. Mad Libs game

    name1=input(' Please enter a name :') name2=input(' Enter another name :') print(' It's ugly {} By the beautiful {} I'm crazy about it '.format(name1,name2)) in ...

Random recommendation

  1. ASP.NET The essence of the first chapter website application learning notes 3- Objectified Http

    stay .NET In the environment , Everything is object , stay HttpRuntime After receiving the request , Will pass immediately HttpWorkerRequest Analyze and decompose the transferred parameters , Create objects that are easy to use for web application processing , Two object classes are involved ...

  2. ASP.NET Web API Safety certification

    http://www.cnblogs.com/codeon/p/6123863.html http://open.taobao.com/docs/doc.htm?spm=a219a.7629140.0 ...

  3. Sorting algorithm SIX: Bubble sort BubbleSort

    /** * Bubble sort : * Two two comparisons , After a round, the biggest one is at the bottom * n The number becomes n-1 A bad number * Another round * The second largest is the penultimate * And so on * Until we get to the first one * * Get two ...

  4. ACCSESS Database import to SQL SEVERES2005

    Start by opening Access Database and then select a table , Right click to select the type of database to import ( Here already sql2005 For example ) And I'm gonna go ahead and say new Click next Select the import database type (sql) Enter a name , You can use ( What's built here is 250) ...

  5. Python- New algorithm -51

    # What is an algorithm # The method of calculation : The human brain is complex The computer is simple # 99 * 13 = 1287 = 13*100 - 13# lookup : To find the data # Sort :# Shortest path # The algorithm we learned It's all the past tense # understand ...

  6. stay Centos below FTP Mapping scheme

    Two days ago, the company was on one Centos On the machine , Backup some files to another computer regularly ftp Server , stay Linux In the system ,mount It doesn't support hanging directly on "ftp://192.168.1.1/backup&quo ...

  7. Syntactic and Semantic Errors

    There are two kinds of errors that Basis can find. Syntax errors occur during the parsing of input c ...

  8. use windows Self contained fsutil To create 1G sparse file (sparse file)

    fsutils file createnew  a.dat 1073741824 fsutil sparse setflag a.dat fsutil sparse setrange a.dat 0  ...

  9. JavaScript Basics : Study javascript Why

    JavaScript Is the most popular scripting language in the world , Because you're on the computer . mobile phone . All the web pages on the tablet , And countless based on HTML5 The mobile phone App, Interaction logic is made up of JavaScript Driven . In short ,JavaScript ...

  10. Linux(CentOS7) Set up automatic database backup to alicloud OSS

    Environmental Science : Aliyun server CentOS7.4 + MySQL5.6 The basic idea : 1. To write shell Script , Backup the database to the specified directory 2. To write Python Script , Upload the file to OSS 3. hold shell Scripts and Python ...