top of page
Search

How loops can be utilized in list processing; Python Example

A list is created by first naming the list. In this case, we will use "shoppinglist". You would then create a relationship to the list with and '=' (equals sign) followed by your items in brackets ('[]'). Each of the items need to have a single quote wrapping the item individually and must be separated by a comma ( , ) outside of the single quote. To print the shopping list, we will use a 'for' statement loop to iterate though the list. Lesson: always use appropriate indentation. I made that easy mistake the first time I tried the program.


 
 
 

Recent Posts

See All
Assessing PCI DSS Requirement 8

Assessing PCI DSS Requirement 8: Secure Passwords for Organizations Processing Credit Card Data Credit card information is a top target...

 
 
 
The Importance of Risk Management

The Importance of Risk Management in Cyber Security Assessments and Audits In today's digital age, the risk of cyber-attacks and data...

 
 
 
The Importance of Auditing

The Importance of Auditing: A Comparative Analysis of Internal and External Audits IT auditing is the process of assessing a company's...

 
 
 

Commentaires


bottom of page