-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexercise1
52 lines (29 loc) · 1.25 KB
/
exercise1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Python Basics Lab Exercises for DevOps
# Exercise 1: Variables and Strings
# Create variables for your name, years of experience in DevOps, and preferred cloud platform.
# Print each variable on a separate line.
# Your code here
# Exercise 2: String Concatenation
# Create a professional introduction using the variables from Exercise 1.
# Use the '+' operator to concatenate strings.
# Your code here
# Exercise 3: F-string Formatting
# Rewrite the introduction using f-string formatting.
# Your code here
# Exercise 4: .format() Method
# Create a template string and use the .format() method to fill in the values.
# Your code here
# Exercise 5: Input Function
# Ask the user for their name, years of experience in DevOps, and preferred cloud platform.
# Print a personalized greeting using the input values.
# Your code here
# Exercise 6: Type Function
# Print the type of each variable you've created so far.
# Your code here
# Exercise 7: Type Conversion
# Convert the user's years of experience to an integer and calculate how many more years
# they need to become a "DevOps Guru" (assuming it takes 10 years).
# Your code here
# Exercise 8: String Methods
# Use string methods to modify and analyze the user's preferred cloud platform.
# Your code here