How to cut string? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to cut string?

comment

29th Sep 2017, 7:15 AM
Shivesh Gupta
Shivesh Gupta - avatar
2 Answers
+ 3
You can probably copy part of a string and store it. Like you have a="string" and you wanna cut out "str", you can do a_new=a[:3]
29th Sep 2017, 7:44 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
0
hahaha
30th Sep 2017, 4:06 AM
Shivesh Gupta
Shivesh Gupta - avatar