This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <article class="bg-green-50 w-2/3 px-8 py-10 rounded-xl m-10 shadow-md"> | |
| <h1 class="text-4xl mb-2 text-yellow-900 font-extrabold">The Brawl Between Semantic CSS and Functional CSS</h1> | |
| <div class="font-semibold mb-3 text-yellow-700">10th April, 2021</div> | |
| <div class="text-gray-700 text-lg"> | |
| <p>The Web has experienced a lot since its creation by Tim Berners-Lee. | |
| You can consider remarkable events like the formation of W3C, the classic browser wars, | |
| the formation of WaSP, the ceding of XHTML and HTML 4.0 standards to HTML5 and many other events. | |
| </p> | |
| </div> | |
| </article> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| names = ['Samuel Mensah', 'Thomas Fynn', 'George Stone'] | |
| names_str = "" | |
| for name in names: | |
| names_str += name + ", " | |
| names_str = names_str.rstrip(", ") | |
| print("names_str: ", names_str) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| names = ['Samuel Mensah', 'Thomas Fynn', 'George Stone'] | |
| names_str = ", ".join(names) | |
| print("names_str: ", names_str) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| invoice = Invoice(amount=2000, | |
| invoice_date='2021-04-30', | |
| customer=' Toyota Motor Corporation', | |
| number='INV-20001') | |
| if invoice.is_due is True: | |
| # send a followup report to customer | |
| pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| invoice = Invoice(amount=2000, | |
| invoice_date='2021-04-30', | |
| customer=' Toyota Motor Corporation', | |
| number='INV-20001') | |
| if invoice.is_due: | |
| # invoice id due, send a followup report to customer | |
| pass | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if something_is_wrong: | |
| raise Exception("Something is wrong") | |
| else: | |
| # perform appropriate action | |
| pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if something_is_wrong: | |
| raise Exception("Something is wrong") | |
| # perform appropriate action |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if something_is_wrong: | |
| raise Exception("Something is wrong") | |
| # perform appropriate action |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| allocation_amounts = [120.0, 320.30, 420.0, 100.0] | |
| total_allocation = 0 | |
| for amount in allocation_amounts: | |
| total_allocation = total_allocation + amount | |
| print("total_allocation: ", total_allocation) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| allocation_amounts = [120.0, 320.30, 420.0, 100.0] | |
| print("total_allocation: ", sum([allocation_amounts])) |