# Python Example – Write a Python program to get the Fibonacci series between 0 to 50 # (Python Example for Citizen Data Scientist & Business Analyst)

Write a Python program to get the Fibonacci series between 0 to 50.

Note : The Fibonacci Sequence is the series of numbers :
0, 1, 1, 2, 3, 5, 8, 13, 21, ….
Every next number is found by adding up the two numbers before it.

Sample Solution:

Python Code:

``````
x,y=0,1

while y<50:
print(y)
x,y = y,x+y
``````

Sample Output:

```1
1
2
3
5
8
13
21
34```

## Write a Python program to get the Fibonacci series between 0 to 50

#### Free Machine Learning & Data Science Coding Tutorials in Python & R for Beginners. Subscribe @ Western Australian Center for Applied Machine Learning & Data Science. ```
{"ft_lang_label":"__label__en","ft_lang_prob":0.90472484,"math_prob":0.87554544,"size":1231,"snap":"2023-40-2023-50","text_gpt3_token_len":286,"char_repetition_ratio":0.08801956,"word_repetition_ratio":0.078431375,"special_character_ratio":0.23883022,"punctuation_ratio":0.13765182,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98398393,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-10-03T21:20:21Z\",\"WARC-Record-ID\":\"<urn:uuid:14b9dcb1-0db5-4333-9c4d-a1e317f90dfc>\",\"Content-Length\":\"97888\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1147eaf5-47ca-4997-8ce9-dada7f4ea108>\",\"WARC-Concurrent-To\":\"<urn:uuid:090619ac-359a-4168-ac5b-8a4caecdecc6>\",\"WARC-IP-Address\":\"162.159.135.42\",\"WARC-Target-URI\":\"https://setscholars.net/python-example-write-a-python-program-to-get-the-fibonacci-series-between-0-to-50/\",\"WARC-Payload-Digest\":\"sha1:7ESFAI7J3RUBGK24Y3ZUEL5DIRJVX7OT\",\"WARC-Block-Digest\":\"sha1:RLFTNC64HZVB5IOUQXFK4NAYSSL27K6F\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233511220.71_warc_CC-MAIN-20231003192425-20231003222425-00659.warc.gz\"}"}