Python Programming Tutorial: Loops, Strings, and Lists
Loops
Printing Natural Numbers
n=1
while n<=50:
print(n)
n=n+1Printing Years of Your Life
year=int(input("Enter the year you were born: "))
while year <=2019:
print(year)
year=year+1Final Countdown
n=10
while n>0:
print(n)
n=n-1
print("lift off!")Printing Multiples of 3
n=3
while n<100:
print(n)
n=n+3Candy Distribution
candies= int(input("Enter the number of candies to distribute: "))
n=1 #number of friends
while candies>0:
candies=candies-n**2
n= Read More
Second Language Acquisition: Processing Strategies and Learnability
Processing Strategies in Second Language Acquisition (SLA)
Canonical Order Strategy
The canonical order strategy is the first strategy learners develop. It relies on basic word order (Subject-Verb-Object) and focuses on meaning without requiring extensive grammar knowledge. Learners at this stage operate on a semantic and lexical level.
Initialization/Finalization Strategy
As learners progress, they become more attuned to the beginnings and ends of sentences. Discrepancies between their internal rules
Read MoreUnderstanding Knowledge Discovery in Data Process
Explain Knowledge Discovery in Data Process
It is an interactive and iterative sequence comprising of 9 phases. Teams commonly learn new things in a phase that cause them to go back and refine the work done in prior phases based on new insights and information that have been uncovered. The below description depicts the iterative movement between phases until the team members have sufficient information to move to the next phase. The process begins with finding the KDD goals and ends with the successful
Read MoreDatabase Transaction Management: Validation, Serializability, and Recovery Strategies
Database Transaction Management
Validation Phase
The validation phase ensures that transactions maintain database consistency and serializability. Checks are performed to prevent serialization violations and ensure data integrity.
Read-Only Validation
For read-only transactions, validation verifies that the read values are current, preventing interference. If inconsistencies are detected, the transaction is rolled back and restarted.
Update Validation
For update transactions, validation determines if
Read MoreUnderstanding Race Conditions and Preventing Bugs
Race Conditions – A Type of Bugs
A race condition exists when changes to the timing of two or more events can cause a change in behavior. If the proper timing of execution is required for the proper functioning of the program, this is a bug.
- Most of the time, race conditions present robustness problems.
- But also many important security implications.
Attackers can sometimes take advantage of small time gaps in the processing of code – window of vulnerability – to interfere with the sequence of operations,
Read MoreTransaxion POS Release Notes
Version 2.17.1
Updates
- Completed Dokmail implementation with Transaxion.
- Completed display pole function with animations.
- Allowed loyalty payment on received on account transactions.
- Allowed loyalty payment on customer deposit transactions.
- Added log infos when POS and Server start.
Fixes
- Fixed issue where a method of payment could not be applied on transactions with a negative sub-total and a positive transaction total.
- Fixed penny rounding under $0.05 with a completed payment on special order.
- Fixed issue
