Write a Python program to get the Fibonacci series between 0 to 30

Introduction

Write a Python program to get the Fibonacci series between 0 to 30. I have used python 3.7 compiler for debugging purpose.

num,y=0,1

while y<30:
print(y)
num,y = y, num+y
{"ft_lang_label":"__label__en","ft_lang_prob":0.7908182,"math_prob":0.6675277,"size":354,"snap":"2022-05-2022-21","text_gpt3_token_len":103,"char_repetition_ratio":0.09142857,"word_repetition_ratio":0.9122807,"special_character_ratio":0.29943502,"punctuation_ratio":0.17582418,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.983064,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-01-27T22:57:36Z\",\"WARC-Record-ID\":\"<urn:uuid:a73dc32a-c446-4415-bf96-2e15083ec036>\",\"Content-Length\":\"69216\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:706fbd66-9ce6-414a-a740-9a7d715a0ed0>\",\"WARC-Concurrent-To\":\"<urn:uuid:4119a918-69d1-4e72-9818-4ee2a38c9219>\",\"WARC-IP-Address\":\"104.21.48.139\",\"WARC-Target-URI\":\"https://techstudy.org/python/write-a-python-program-to-get-the-fibonacci-series-between-0-to-30/\",\"WARC-Payload-Digest\":\"sha1:P6VHINHYD7N6I5BMDDFFS3Q5O5XPP6AW\",\"WARC-Block-Digest\":\"sha1:ZROLUSQ42V7BUTGYXE3CM6YT7R43GSBL\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-05/CC-MAIN-2022-05_segments_1642320305317.17_warc_CC-MAIN-20220127223432-20220128013432-00127.warc.gz\"}"}