-2

So I Have Some Work For School And A Task Asks To See How Many Characters Are In A String.

I Don't Even Know Where To Start.

Any Ideas? Thanks

Jack
  • 93
  • 1
  • 5

1 Answers1

1

str = "example"

print ("Length of the string: ", len(str))

T.Salvin
  • 241
  • 2
  • 10
  • I Have Done This, And It Has Brought Up The Code And Says It Can't Convert Int to Str implicitly. I know I have to put string around it but there is already a len so is it possible to do print("Length: " + str(len(string))) – Jack Jul 25 '17 at 08:34