Difference between revisions of "CSC111 Homework 9 Solution Programs 2014"

From dftwiki3
Jump to: navigation, search
(Created page with "--~~~~ ---- > done == hw9a.py == <br /><source lang="python"> def Input( *args ): if len( args )==0: ans = input() print( ans ) return ans ans = input(...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
--[[User:Thiebaut|D. Thiebaut]] ([[User talk:Thiebaut|talk]]) 10:52, 15 April 2014 (EDT)
 
--[[User:Thiebaut|D. Thiebaut]] ([[User talk:Thiebaut|talk]]) 10:52, 15 April 2014 (EDT)
 
----
 
----
> done
+
 
 +
<onlydft>
 +
 
 
== hw9a.py ==
 
== hw9a.py ==
 
<br /><source lang="python">
 
<br /><source lang="python">
def Input( *args ):
 
  if len( args )==0:
 
      ans = input()
 
      print( ans )
 
      return ans
 
  ans = input( ' '.join( args ) )
 
  print( ans )
 
  return ans
 
 
 
# hw9a.py
 
# hw9a.py
 
# Yumeng Wang(cf)
 
# Yumeng Wang(cf)
Line 183: Line 176:
 
== hw9b.py ==
 
== hw9b.py ==
 
<br /><source lang="python">
 
<br /><source lang="python">
def Input( *args ):
 
  if len( args )==0:
 
      ans = input()
 
      print( ans )
 
      return ans
 
  ans = input( ' '.join( args ) )
 
  print( ans )
 
  return ans
 
 
 
# hw9b.py
 
# hw9b.py
 
# Yumeng Wang(cf)
 
# Yumeng Wang(cf)
Line 305: Line 289:
 
maxMagCountry()
 
maxMagCountry()
 
</source><br />
 
</source><br />
 +
 
== hw9c.py ==
 
== hw9c.py ==
 
<br /><source lang="python">
 
<br /><source lang="python">
def Input( *args ):
 
  if len( args )==0:
 
      ans = input()
 
      print( ans )
 
      return ans
 
  ans = input( ' '.join( args ) )
 
  print( ans )
 
  return ans
 
 
 
# hw9c.py
 
# hw9c.py
 
# Yumeng Wang(cf)
 
# Yumeng Wang(cf)
Line 515: Line 491:
  
 
</source><br />
 
</source><br />
 +
</onlydft>
  
 
<br />
 
<br />

Latest revision as of 20:43, 9 January 2015

--D. Thiebaut (talk) 10:52, 15 April 2014 (EDT)



...