Skip to content

Instantly share code, notes, and snippets.

@hanksudo
Last active December 14, 2015 18:48
Show Gist options
  • Save hanksudo/5131810 to your computer and use it in GitHub Desktop.
Save hanksudo/5131810 to your computer and use it in GitHub Desktop.
Multiplication Sample
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# filename: Multiplication.py <九九乘法>
# date: 2010-08-07
if __name__ == "__main__":
for i in range(2, 10):
for j in range(1, 10):
print(i, " x ", j, " = ", i*j) # method 1
#print("%d x %d = %d" % (i, j, i*j)) # method 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment