Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

FizzBuzz FizzBuzz is a well known programming assignment, asked during interviews.

n = int(input())

for x in range(1, n,2):
    if x % 3 == 0 and x % 5 == 0:
        print("SoloLearn")
        continue
    elif x % 3 == 0:
        print("Solo")
        continue
    elif x % 5 == 0:
        print("Learn")
        continue
    else:
        print(x)
Comment

PREVIOUS NEXT
Code Example
Python :: python volver al principio 
Python :: undefie int value python 
Python :: is there a replacement for ternary operator in python 
Python :: decyphing vigener cypher without key 
Python :: neural network without training return same output with random weight 
Python :: python specify typeError output 
Python :: build spacy custom ner model stackoverflow 
Python :: anaconda create environment python version 
Python :: how to shutdown your computer using python 
Python :: pil to grayscale 
Python :: datetime.timedelta months 
Python :: pandas number of observations 
Python :: python json to dict and back 
Python :: label encoder pyspark 
Python :: django model query add annotation field to show duplicate count 
Python :: how to display speechmarks in python string 
Python :: dataframe how to substruct 2 dates 
Python :: python pandas remove punctuation 
Python :: python primera letra mayuscula 
Python :: gdscript 2d movement 
Python :: python catch all exceptions 
Python :: truncate add weird symbols in python 
Python :: install python 3.6 ubuntu 16.04 
Python :: import csv file in python 
Python :: python extract mails from string 
Python :: t.interval scipy 
Python :: how to set the size of a gui in python 
Python :: zermelo api 
Python :: exit python script 
Python :: check version numpy 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =