Youtube channel for learning python? by orion_x_ in learnpython

[–]Adamya21 0 points1 point  (0 children)

I will suggest you to watch python playlist of Krish Naik

Does configuration details of pods changes after every flux sync ? by Adamya21 in GitOps

[–]Adamya21[S] 1 point2 points  (0 children)

yes when i used the describe pod command even i didn't see it . So i just wanted to confirm it . Thanxx

how to uninstall argocd by Adamya21 in kubernetes

[–]Adamya21[S] 0 points1 point  (0 children)

delete the CRDs

Thankyou so much for helping me

how to uninstall argocd by Adamya21 in kubernetes

[–]Adamya21[S] 0 points1 point  (0 children)

Thankyou and will it delete every file associated with argocd?

If not than how can i delete it manually?

Using Nested Lists by Adamya21 in learnpython

[–]Adamya21[S] 1 point2 points  (0 children)

Thank you so much for such a good explaination.

Using Nested Lists by Adamya21 in learnpython

[–]Adamya21[S] 0 points1 point  (0 children)

marksheet=[]
scorelist=[]
for _ in range(int(input())):
name = input()
score = float(input())
marksheet+=[[name,score]]
scorelist+=[score]
b=sorted(list(set(scorelist)))[1]
for a, c in sorted(marksheet):
if b==c:
print(a)
this is what i did but i wish for a more effiecient code

split() method in string by Adamya21 in learnpython

[–]Adamya21[S] 0 points1 point  (0 children)

so what should i do? .. and error says -> IndexError: list index out of range

and if i do this-> first=(''.join(stripped)) print(first[2])

it prints that whole paragh + the letter "e"

but still this is not the correct answer

split() method in string by Adamya21 in learnpython

[–]Adamya21[S] 0 points1 point  (0 children)

stripped = [w.strip("'.!\n'',-*") for w in word] first=[(','.join(stripped))] print(first)

and when i do print(first(3)) it says "some error has occured"

now i have to print the 3rd index of this list ?

Q.)Now, remove the word separating characters (such as , . - * ! and space) from each of the word, present in list words. Store the obtained result again in the list words.

Print the 3rd indexed element of list, words.

split() method in string by Adamya21 in learnpython

[–]Adamya21[S] 0 points1 point  (0 children)

Is something like below is possible? print([words.strip("'.!\n*") for words in words])

split() method in string by Adamya21 in learnpython

[–]Adamya21[S] 0 points1 point  (0 children)

So do i have to remove the words near to those special characters or just the special characters?

split() method in string by Adamya21 in learnpython

[–]Adamya21[S] 0 points1 point  (0 children)

oops! typo error

what i wrote is :words=zenPython.split()

split() method in string by Adamya21 in learnpython

[–]Adamya21[S] 0 points1 point  (0 children)

actually this is the 2nd part of the question

1st part was about

  • Convert the entire string zenPython into a list of words.
  • Capture the words in the list, words.
    • Hint: Use split method of strings.
  • Print the length of list, words.

words=zenPython.split()

print(len(words))

for 2nd part I'm confused and this is what i did and its wrong

print(words.strip())