What does Instruction[0] mean?
By
Yoo Song Won
in Programming
in Programming
Go to solution
Solved by 79wjd,
Instruction[0] references the first character in the string 'Instruction' while Instruction[1:] references all characters except the first.
E.g.
Let instruction = 'hello'
Then instruction[0] == 'h' and instruction[1:] == 'ello'
-
Topics
-
1
-
toxic_worper ·
Posted in New Builds and Planning8 -
5
-
1
-
voltigeurramon ·
Posted in Troubleshooting1 -
1
-
1
-
Vibora ·
Posted in New Builds and Planning5 -
5
-
3
-

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now