Create a `Date` class with `day`, `month`, `year`. Add a class method `from_string(cls, date_str)` that parses a ‘DD-MM-YYYY’ string and returns a new `Date` instance. Print the date using a `display()` method as ‘Date: DD/MM/YYYY’.
A single string 'DD-MM-YYYY'.
Print the formatted date string.
None
15-08-2026
Date: 15/08/2026
Class methods are commonly used in Python as alternative constructors (factories) to create instances from different types of input data.
class Date:
def __init__(self, day, month, year):
self.day = day
self.month = month
self.year = year
# Define from_string class method here
# Define display method here
pass
if __name__ == '__main__':
date_str = input().strip()
# Create Date using from_string and display
passEmbedded systems rely on efficient low-level programming to interact directly with hardware. In this course, you will learn how to write practical Embedded C programs used in real microcontroller-based systems. Rather than focusing only on theory, this course follows a practice-driven approach. Each lesson includes hands-on coding exercises that simulate real firmware development tasks used