all InfoSec news
100 Days of Code: The Complete Python Pro Bootcamp for 2022 - Day 8
April 19, 2022, 9:39 p.m. | Mike Kameta
DEV Community dev.to
Exercise 1 - Paint area calculator
-Write your code below this line 👇
import math
def paint_calc(height, width, cover):
num_of_cans = (height * width) / cover
round_up_cans = math.ceil(num_of_cans)
print(f"You'll need {round_up_cans} cans of paint.")
-Write your code above this line 👆
-Define a function called paint_calc() so that the code below works.
-🚨 Don't change the code below 👇
test_h = int(input("Height of wall: "))
test_w = int(input("Width of wall: "))
coverage = 5
paint_calc(height=test_h, width=test_w, cover=coverage)
Exercise 2 …
More from dev.to / DEV Community
How to set up AWS Verified Access with Okta
16 hours ago |
dev.to
How to Hack (and secure) Serverless Applications
19 hours ago |
dev.to
Smart Contract Verification And Deploying Using Hardhat
1 day, 4 hours ago |
dev.to
Jobs in InfoSec / Cybersecurity
Information Technology Specialist II: Network Architect
@ Los Angeles County Employees Retirement Association (LACERA) | Pasadena, CA
Cybersecurity Skills Challenge -- Sponsored by DoD
@ Correlation One | United States
Security Operations Center (SOC) Analyst
@ GK Cybersecurity Group | Remote
Cyber Consultant
@ Frazer-Nash Consultancy | Gloucester, England, United Kingdom
Senior Vulnerability Management Reporting & Analytics Developer
@ Baker Hughes | IN-KA-BANGALORE-NEON BUILDING WEST TOWER
Product Security Architect
@ ChargePoint | Italy