Arrays python

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • siphokazi dayile
    New Member
    • Mar 2010
    • 1

    Arrays python

    read character (up to 100) entered by the user into an array. stop reading when the user enters a full-stop. display the number of characters in the reverse order to which they were entered.
  • Glenton
    Recognized Expert Contributor
    • Nov 2008
    • 391

    #2
    Can you show us what you've done and tell us why you're doing it?

    Comment

    • bvdet
      Recognized Expert Specialist
      • Oct 2006
      • 2851

      #3
      siphokazi dayile,

      See if this helps:
      Code:
      >>> ["A", "B", "C", "D", "E", "F"][::-1]
      ['F', 'E', 'D', 'C', 'B', 'A']
      >>>

      Comment

      Working...