Hello, 

 

This is my exercise:

 

Write Python code to make each of the following doctests pass:

"""
  >>> type(fruit)
  <type 'str'>
  >>> len(fruit)
  8
  >>> fruit[:3]
  'ram'
"""
I have made this :""""
  >>> type(fruit)
  <type 'str'>
  >>> len(fruit)
  8
  >>> fruit[:3]
  'ram'
"""
fruit="ramadana"
print "fruit heeft als type", type(fruit)
y=len(fruit)
print yz=fruit[:3]
print zEverything works fine except the type () does not give any input.WWhat 
am I doing wrong Roelof                                     
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to