Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98823

A Program that prints the numbers from 1 to 100

X-Received by 10.182.87.167 with SMTP id az7mr24092094obb.18.1447522462425; Sat, 14 Nov 2015 09:34:22 -0800 (PST)
X-Received by 10.50.6.40 with SMTP id x8mr182130igx.0.1447522462367; Sat, 14 Nov 2015 09:34:22 -0800 (PST)
Path csiph.com!xmission!news.glorb.com!i2no2363608igv.0!news-out.google.com!l1ni4357igd.0!nntp.google.com!i2no2363605igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Sat, 14 Nov 2015 09:34:22 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=2404:e800:ee12:41:d55:1983:6adb:f5fb; posting-account=V6fVrwoAAAB_KNNhh7gdmvqhYlmrIkSO
NNTP-Posting-Host 2404:e800:ee12:41:d55:1983:6adb:f5fb
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <ddada022-49a4-418e-85a1-45cd6da015f7@googlegroups.com> (permalink)
Subject A Program that prints the numbers from 1 to 100
From Cai Gengyang <gengyangcai@gmail.com>
Injection-Date Sat, 14 Nov 2015 17:34:22 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.python:98823

Show key headers only | View raw


I want to write a program in Python that does this ----

"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"."

How do I go about doing it ?

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

A Program that prints the numbers from 1 to 100 Cai Gengyang <gengyangcai@gmail.com> - 2015-11-14 09:34 -0800
  Re: A Program that prints the numbers from 1 to 100 Joel Goldstick <joel.goldstick@gmail.com> - 2015-11-14 12:49 -0500
  Re: A Program that prints the numbers from 1 to 100 BartC <bc@freeuk.com> - 2015-11-14 18:18 +0000
    Re: A Program that prints the numbers from 1 to 100 Ammammata <ammammata@tiscalinet.it> - 2015-11-16 11:12 +0000
  Re: A Program that prints the numbers from 1 to 100 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-11-14 18:25 +0000
  Re: A Program that prints the numbers from 1 to 100 Steven D'Aprano <steve@pearwood.info> - 2015-11-15 12:39 +1100
  Re: A Program that prints the numbers from 1 to 100 harirammanohar159@gmail.com - 2015-11-16 03:57 -0800
    Re: A Program that prints the numbers from 1 to 100 Chris Angelico <rosuav@gmail.com> - 2015-11-16 23:35 +1100
      Re: A Program that prints the numbers from 1 to 100 Jussi Piitulainen <harvesting@is.invalid> - 2015-11-16 15:39 +0200
        Re: A Program that prints the numbers from 1 to 100 Chris Angelico <rosuav@gmail.com> - 2015-11-17 00:43 +1100

csiph-web