How do you turn lists with multiple characters into strings?

Learning_to_program

I'm quite new to programming and have looked on many answers to similar questions but they don't produce the desired result for me. Is it possible for any of you guys to help me? example code:

shapes = ["tri", "angle"]

groupedShapes = "triangle"
Alexander

According to the doc's:

string.join(words[, sep]) Concatenate a list or tuple of words with intervening occurrences of sep. The default value for sep is a single space character.

shapes = ["tri", "angle"]
groupedShapes = "".join(shapes)
# "triangle"

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How do I turn off bullet list formatting all of the lines to bullet lists in Word 2013?

분류에서Dev

how do you convert data frame to json with multiple columns in R

분류에서Dev

How do you reference bindings multiple times within a Pakyow view?

분류에서Dev

How do I join multiple lists of uniform variables but different values into a single matrix?

분류에서Dev

HandlebarsJS How to check if strings contain special characters

분류에서Dev

How do you render multiple templates with one route controller using iron-router?

분류에서Dev

How do you use ColabTurtle?

분류에서Dev

How do you draw a Control?

분류에서Dev

How do you switch ViewControllers?

분류에서Dev

How do you invoke a method?

분류에서Dev

How do you sudo with xonsh?

분류에서Dev

How do you use badblocks?

분류에서Dev

How do you do this in MS Excel?

분류에서Dev

How to Rename Multiple Files With Their First 10 Characters?

분류에서Dev

how to find no. of similar characters in two strings in javascript

분류에서Dev

How do I turn off all the password prompts?

분류에서Dev

How do I turn on sticky keys from the CLI?

분류에서Dev

How do I turn on nanosecond precision when capturing live traffic?

분류에서Dev

How do I turn on advanced telemetry in an AIR app?

분류에서Dev

How do I input Greek characters in Ubuntu?

분류에서Dev

Tween Multiple object turn by turn in tweenlite

분류에서Dev

How do i save strings to an array and display the strings in an label?

분류에서Dev

How do I store an array of strings into another array of strings?

분류에서Dev

How can you turn Core Isolation Memory Integrity back off again in Windows 10 build 17127 and later

분류에서Dev

How do I use OR with if statements in regards to strings

분류에서Dev

How do you confirm if .htaccess if working fine?

분류에서Dev

How do you select text in vim?

분류에서Dev

How do you interpret a keyboard layout?

분류에서Dev

How do you print contents of a RichTextBox?

Related 관련 기사

  1. 1

    How do I turn off bullet list formatting all of the lines to bullet lists in Word 2013?

  2. 2

    how do you convert data frame to json with multiple columns in R

  3. 3

    How do you reference bindings multiple times within a Pakyow view?

  4. 4

    How do I join multiple lists of uniform variables but different values into a single matrix?

  5. 5

    HandlebarsJS How to check if strings contain special characters

  6. 6

    How do you render multiple templates with one route controller using iron-router?

  7. 7

    How do you use ColabTurtle?

  8. 8

    How do you draw a Control?

  9. 9

    How do you switch ViewControllers?

  10. 10

    How do you invoke a method?

  11. 11

    How do you sudo with xonsh?

  12. 12

    How do you use badblocks?

  13. 13

    How do you do this in MS Excel?

  14. 14

    How to Rename Multiple Files With Their First 10 Characters?

  15. 15

    how to find no. of similar characters in two strings in javascript

  16. 16

    How do I turn off all the password prompts?

  17. 17

    How do I turn on sticky keys from the CLI?

  18. 18

    How do I turn on nanosecond precision when capturing live traffic?

  19. 19

    How do I turn on advanced telemetry in an AIR app?

  20. 20

    How do I input Greek characters in Ubuntu?

  21. 21

    Tween Multiple object turn by turn in tweenlite

  22. 22

    How do i save strings to an array and display the strings in an label?

  23. 23

    How do I store an array of strings into another array of strings?

  24. 24

    How can you turn Core Isolation Memory Integrity back off again in Windows 10 build 17127 and later

  25. 25

    How do I use OR with if statements in regards to strings

  26. 26

    How do you confirm if .htaccess if working fine?

  27. 27

    How do you select text in vim?

  28. 28

    How do you interpret a keyboard layout?

  29. 29

    How do you print contents of a RichTextBox?

뜨겁다태그

보관