git
ask
hub
Privacy
Terms
Sign in with GitHub
willcl-ark/conditionals-python-readme-data-science-intro-000
↗
Language ·
Jupyter Notebook
License ·
NOASSERTION
Simplify and Visualize This Repo
Scan the safety of this repo
Self Host this repo
Check out more work of Developer: willcl-ark
Ask anything about this repo to start.
Write a Python function that takes a list of vacation trip names and returns only the trips whose names start with the letter 's', using a for loop and an if statement.
Create a simple Python example that sets a variable called trip_length and prints 'Long vacation' if it is greater than 4, otherwise prints 'Short trip'.
Explain Python truthiness by listing which of these values would be treated as false: 0, None, an empty string, an empty list, and the number 1.
Write a Jupyter Notebook code cell that loops through a list of greetings and uses an if statement to print only the ones that start with the letter 'h'.
Full explanation on explaingit →
📎
Send
By chatting or signing in you agree to the
Terms
and chat-message logging (revocable in
History
).