> 2 3 + 2 = 5 3 - 2 = 1 3 * 2 = 6 3 / 2 = 1.5 Conditionals and comparison Exercise_24 create a program, which asks the user for an integer. If the given integer is larger than 120, output "Speeding!". Your speed: > 5 Your speed: 125 Speeding! Exercise_25 create a pro...
Conditionals Loops What are filters? Do you have experience with writing filters? Write a filter to capitalize a string def cap(self, string): return string.capitalize() You would like to run a task only if previous task changed anything. How would you achieve that? What are callback pl...
#conditionals exercise 12 def isLeap(year): remainder = year % 100 century = year - remainder if year % 4 == 0 and century % 400 == 0: return True else: return False #strings exercise 6 def reverse(astring): '''reverse astring''' revString = '' for i in range(len(astring)...
{ "slug": "fizzbuzz", "uuid": "mumblety-peg-whatever", "core": false, "unlocked_by": "two-fer", "difficulty": 1, "topics": ["conditionals"] }See Exercism Docs: config.json for more info.Exercise files: OverviewFor any exercise you may see a number of files present in a ...
Explain conditionals and how do you use them What is a loop? What types of loops are you familiar with? Explain continue and break. When do you use them if at all? How to store the output of a command in a variable? How do you check variable length? What is the difference between ...
Conditionals Loops ⭐ Advanced What are filters? Do you have experience with writing filters? Write a filter to capitalize a string def cap(self, string): return string.capitalize() You would like to run a task only if previous task changed anything. How would you achieve that? What are...
Conditionals Loops What are filters? Do you have experience with writing filters? Write a filter to capitalize a string def cap(self, string): return string.capitalize() You would like to run a task only if previous task changed anything. How would you achieve that? What are callback pl...
Conditionals Loops What are filters? Do you have experience with writing filters? Write a filter to capitalize a string def cap(self, string): return string.capitalize() You would like to run a task only if previous task changed anything. How would you achieve that? What are callback pl...
tasks: - command: /path/to/cpu_intensive_command throttle: 1 What is ansible-pull? How is it different from how ansible-playbook works? What is Ansible Vault? Demonstrate each of the following with Ansible: Conditionals Loops What are filters? Do you have experience with writing filters?
Statements are instructions executed by the interpreter like variable assignments, for loops and conditionals (if-else). What is Object Oriented Programming? Why is it important?Explain Composition What is a compiler?What is an interpreter?Are...