# Python -Sum using For & While, 加總使用 For 與 While

```sum = 0
for i in range(1,11):
sum = sum + i
print (sum)
```

```sum=0
{"ft_lang_label":"__label__zh","ft_lang_prob":0.74345565,"math_prob":0.9893961,"size":353,"snap":"2022-27-2022-33","text_gpt3_token_len":216,"char_repetition_ratio":0.13467048,"word_repetition_ratio":0.0,"special_character_ratio":0.37393767,"punctuation_ratio":0.0945946,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9937973,"pos_list":[0,1,2],"im_url_duplicate_count":[null,10,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-04T04:03:15Z\",\"WARC-Record-ID\":\"<urn:uuid:336bd479-ecf2-4ab1-ae7e-5b25d83e4673>\",\"Content-Length\":\"66136\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:907eb3e8-3ca4-4807-8c00-5e749f215086>\",\"WARC-Concurrent-To\":\"<urn:uuid:3262e31f-ebfd-4df6-84ed-5f5b7d354046>\",\"WARC-IP-Address\":\"51.79.199.201\",\"WARC-Target-URI\":\"https://www.george.tw/2019/06/10/python-110-%E5%8A%A0%E7%B8%BD-for/\",\"WARC-Payload-Digest\":\"sha1:HA6NSYOEMI2U34KBQND4UKFORSK3VKAF\",\"WARC-Block-Digest\":\"sha1:CWESSLX77SYCM2NCKFJ4RFQ5CPYCUI6E\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656104293758.72_warc_CC-MAIN-20220704015700-20220704045700-00553.warc.gz\"}"}