Skip to content
Snippets Groups Projects
Select Git revision
  • 183d6d3a25350e4dba7a306444d51da10e50a7cb
  • master default
  • rtde
  • tmp-gpg-key-workaround-2
  • tmp-gpg-key-workaround
  • 68-git-lfs-error-in-ddeploy-job
  • split-build-and-test
  • 66-jazzy-support
  • 62-deploy-jobs-do-not-pull-files-from-lfs-manual-lfs-pull
  • 62-deploy-jobs-do-not-pull-files-from-lfs-custom-docker-image
  • py3-without-industrial-ci-test
  • 58-add-yolo-pip-package-support
  • 55-collision-between-test-jobs-due-to-dds-autodiscovery-ros2
  • 52-ddeploy-job-failing-when-enforcing-labels-alt-quick-dind-test
  • 48-python3_syntax
  • 46-default-docker-image-name-too-long
  • 45-double-pipeline-triggered-if-merge-request-has-melodic-branch-name
  • 40-repo-is-ros-testing
  • test-badges
  • test-lfs-concept
  • add-packages
21 results

roslaunch_test_generator.sh

Blame
  • fizzbuzz.py 488 B
    def fizzbuzz(i:int) -> str:
        """
        Write a program that prints the numbers from 1 to 100.
        But for multiples of three print "Fizz" instead of the number 
        And for the multiples of five print "Buzz". 
        For numbers which are multiples of both three and five print "FizzBuzz".
        """
    
    
        if i % 3 == 0 and i % 5 == 0:
            s ="FizzBuzz"
    
        elif i % 3 == 0:
            s = "Fizz"
    
        elif i % 5 == 0:
            s ="Buzz"
        else:
            s = str(i)
            
    
        return s