##### ► Python program to calculate area of a circle

Steps followed:
1. take radius of circle as input from user
2. validate the input and then calculate the area of circle with formula pi*r*r
3. print area

Program
``````#python program to calculate area of a circle

#getting radius of circle as input from user

try:

#calculate area of circle

#print area of circle
print("---output---")

except:

Output
``````Enter radius of circle: 14
---output---
area of circle with radius 14.00 is 616.00
{"ft_lang_label":"__label__en","ft_lang_prob":0.68932444,"math_prob":0.9365759,"size":807,"snap":"2023-14-2023-23","text_gpt3_token_len":200,"char_repetition_ratio":0.22166874,"word_repetition_ratio":0.09917355,"special_character_ratio":0.26641884,"punctuation_ratio":0.09210526,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99861187,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-03-26T18:00:31Z\",\"WARC-Record-ID\":\"<urn:uuid:5167b346-f5e8-44fa-85ce-e1e057dd5ba8>\",\"Content-Length\":\"9752\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:423c56bf-bb91-4be2-9112-f20a08f1e614>\",\"WARC-Concurrent-To\":\"<urn:uuid:1abb69f2-8c37-435c-90ae-ca7ee6827581>\",\"WARC-IP-Address\":\"3.22.103.22\",\"WARC-Target-URI\":\"https://www.ac-know.com/python/pyprograms/python-program-to-calculate-area-of-a-circle\",\"WARC-Payload-Digest\":\"sha1:BOL3SFCVJQB2T4VU4TYO2LOTFCE36PFA\",\"WARC-Block-Digest\":\"sha1:TBUIJ5WNI32F7NF3OBIQ4X6SUJXCPGQU\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-14/CC-MAIN-2023-14_segments_1679296946445.46_warc_CC-MAIN-20230326173112-20230326203112-00322.warc.gz\"}"}