The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
operates the extraction of strings as []
04-20-2015, 03:34 PM
Post: #1
operates the extraction of strings as []
Phython operates the extraction of strings as subscripts [], This option PRIME facilitates the manipulation of string, that they are treated as arrays

HPPrime
Syntax: MID(string, position, [n])

Extracts n characters from string starting at position. If n is not specified, then MID extracts the remainder of the string from position.

Example:
MID("MOMOGUMBO",3,5) returns "MOGUM"
MID("PUDGE",4) returns "GE"

Python

´abc´[1] retorna 'b', because Python strings are handled from position 0
´abcdef´[0:2] retorna 'ab', the operator: inside the container [] is TO, as does also MATLAB
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
operates the extraction of strings as [] - compsystems - 04-20-2015 03:34 PM



User(s) browsing this thread: 1 Guest(s)