For what do we need pip?
management of libraries
Linus Torvalds
How do you create multiline comments in Python?
"""
multiline
comment
"""
or'''
multiline
comment
'''
What is the golden rule of commit?
One topic, one commit or Only commit related changes!
How can i search all in PyCharm?
Double Shift
List at least three characteristics of Gherkin format!
Which character can be used as a thousands separator in Python?
_ (underscore)
What is the file .gitignore good for?
.gitignore list files and folders Git has to ignore
Given is:for i in range(1, 7, 2):
print(i)
What do we see?
1
3
5
Are there data types in Python?
Yes (Boolean Types, Numeric Types, Sequence Types,...)
What is the difference between git revert and git reset?
git revert inverts the specified commit in a new one (new commit is created), git reset moves the HEAD pointer to the specified revision
For what do we need the __init__ method in Python?
The __init__ method is the method that will be called directly after the constructor in Python and is used to instantiate the needed variables when creating an object
class Roboter:
def __init__(self, name, year):
self.name = name
self.year= year
What is the "git checkout <hash> <file>" pendant in PyCharm?
"Get Revision..." on a file
What does the venv directory include?
Libraries, Python version
How many areas exist in Git and what are their names?
3 - working copy, staging area, local repository/commit area/Git repository
What is the output of method vars()?
The properties of the object.
What types of scenarios do exists?
- illustrative scenarios
- journey scenarios
List two classes of control structures in Python with example!
- Loops (for, while)
- Conditions (if, if-else, if-elif-else, match case)
- function call
Git command to create a branch and switch directly into it?
git checkout -b <branchname>