indexing tag

6 questions


1 answers
177 views
0
Find the last element in the Python list

How can I find the last element in the Python list?

2 years ago

1 answers
135 views
0
I want to replace characters in a specific index of a string.

To replace characters in a specific index in a string String myName = domanokz;myName.charAt(4) = 'x';I tried this way, but an error occurred. Is there another method?


1 answers
82 views
0
Please help me change the elements in the array to [Element, Index]

Arrangements such as [hello, ruby, world] in ruby[Hello, [2], [ruby, 3], [world, 4] How do I change it?

2 years ago

2 answers
176 views
0
Extract am is z from the string my name is z from python3

I want to extract am is z from the string my name is z from python3[4: ] Not like thisExtract from a, and if z comes out, it's over. [a: z] For example, if it's adkzed, I want to print only adkz Pleas...

2 years ago

1 answers
87 views
0
I have a question regarding the Python list indexing.

stack = [3, 4, 5, 8, 0]print('stack : [')for x in stack: print(stack[x], end='') if x >= 4: print(']') break;As above, I tried to check if the value is output after declaring and assigning a list...

2 years ago

3 answers
118 views
0
Reverse by Python string word

Hello, it's nothing but a = input()print (a[::-1])For example, how are you is uoyera woh.I'd like to make each spelling upside down, not backwards, but backwards based on spacing.If it's how are you, ...

2 years ago

© 2024 OneMinuteCode. All rights reserved.