+ 1
Это ошибка из-за реализации якорей и псевдонимов с картами и последовательностями. В моем случае я использую якоря и псевдоним в качестве Devops. Как реализовать этот Devops с картами и последовательностями.
0
computing has a typo,
running it through an online linter
(you can check if your yaml is valid or not using online checkers.)
also blankspace in front of the '#' makes it invalid.
---
courses:
-Automation
-Data science
-&a Devops
#First occurence
-cloud computing
Algorithms:
-*a
#Second occurence
0
anchors are markers for sections and aliases are used to reference that marked section. Your topic is vague and I'm not sure what sections are you trying to link here...
But I think the solution above counts as anchors and alias for Devops.
0
trailing space? maybe your ide is adding it? with problems like these, you have to analyze the error messages and review your code. maybe look for typos or extra or missing characters.
0
is it required to choose only one?
maybe you need this:
courses:
&a1
- Automation
- Data Science
- Devops
- cloud computing
Algorithms:
*a1
0
think of aliasing as assigning a variable name, then like in C language, & for address and * for pointer to reuse the value.
in your case, only alias Devops:
---
courses:
- Automation
- Data Science
- &a1 Devops
- cloud computing
Algorithms:
*a1
...
0
my solution:
items = input().split(",")
box = input()
time = 5
for item in items:
if items.index(item) < items.index(box):
time += 5
print(time)
0
I'm out of ideas...
how are you submitting your code? is it in a textarea input in the browser? perhaps there are options there you have to check or uncheck that is removing the needed newline at the end of the file?
or maybe open it in a different web browser.
0
perhaps there is a setting there that removes the newline when it should not.
https://stackoverflow.com/questions/3802406/configure-visual-studio-to-use-unix-line-endings#69948811
https://youtu.be/YfN3igHXTPo