<jupyter_start><jupyter_text>Fizz Buzz is a very simple programming task  asked in software developer job interviews.Write a program that prints the numbers from 1 to x(user given) and for multiples of ‘3’ print “Fizz” instead of the number, for the multiples of ‘5’ print “Buzz” and for multiples of ‘3 and 5’ both print “FizzBuzz”.<jupyter_code># FizzBuzz

number = int(input("Enter the range: from 1 to : "))    # takes the number from user

for i in range(1, number+1):
# a "for loop" which executes from 1 and ends at number given by => range(1,number+1) = [1, number+1)
    if (i%15==0):    # for checking the number divisible by both 3 and 5
        print("FizzBuzz")
    elif(i%3==0):    # for checking the number divisible by 3
        print("Fizz")
    elif(i%5==0):    # for checking the number divisible by 5
        print("Buzz")
    else:        # when the number is neither divisible by 3 nor 5
        print(i)<jupyter_output><empty_output><jupyter_text>Add sum of digits<jupyter_code># program that returns the sum of digits of a number

number = int(input("Enter the number: "))    # takes the number from user

temp=number    # stores the number in a new variable in order to manipulate 
               # that new variable without disturbing the original variable

summ = 0       # default value of summ = 0
    
while(temp!=0):
    remainder = temp%10  # gets the ones place digit
    summ += remainder    # adds the digit into existing sum
    temp//=10            # to get number excluding the ones place
    
print(f'Sum of digits of {number} is {summ}.')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08830845771144279, 'fraction_numerical': 0.020522388059701493, 'mean_word_length': 3.2679045092838197, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '99103', 'license': 'Apache-2.0', 'n_tokens_mistral': 506, 'n_tokens_neox': 482, 'n_words': 210, 'path': 'python/PB-day1.ipynb', 'repo_name': 'ishanbagchi/competitive-codes', 'size': '1608'}