Funny Example of for Loop in python: Idli, Vada, Puri , for ಲೂಪ್‌ನ ಫನಿ ಉದಾಹರಣೆ: ಇಡ್ಲಿ, ವಡೆ, ಪುರಿ
codemasti with vijay  ಕೋಡ್ ಮಸ್ತಿ ವಿಜಯ್ ಜೊತೆ codemasti with vijay ಕೋಡ್ ಮಸ್ತಿ ವಿಜಯ್ ಜೊತೆ
102 subscribers
27 views
1

 Published On Oct 3, 2024

The for loop is a powerful tool for iteration in programming. In this funny example, we use a hotel menu with prices (idli, vada, puri) to demonstrate the for loop. We ask the customer to place an order, and the loop iterates over each item, checking if the customer wants it, adding the selected items to the order, and calculating the total cost. This fun approach helps people understand how loops can be used in programming with ease.
for ಲೂಪ್ ಪ್ರೋಗ್ರಾಮಿಂಗ್‌ನಲ್ಲಿ ಮರುಕಳಿಸುವ (ಇಟರೇಟ್ ಮಾಡುವ) ಒಂದು ಶಕ್ತಿಯುತ ಸಾಧನವಾಗಿದೆ. ಈ ಉದಾಹರಣೆಯಲ್ಲಿ, ನಾವು ಹೋಟೆಲ್ ಮೆನು ಬೆಲೆಗಳೊಂದಿಗೆ (ಇಡ್ಲಿ, ವಡೆ, ಪುರಿ) for ಲೂಪ್ ಅನ್ನು ಬಳಸುತ್ತೇವೆ. ಇದರಲ್ಲಿ ಗ್ರಾಹಕರಿಂದ ಆರ್ಡರ್ ಕೇಳಲಾಗುತ್ತದೆ, ಮತ್ತು ಲೂಪ್ನಲ್ಲಿ ಪ್ರತಿ ಐಟಂ ಕೇಳಿ, ಆಯ್ಕೆ ಮಾಡಿದಾಗ ಅಂಶಗಳನ್ನು ಸೇರ್ಸಿ ಒಟ್ಟು ಖರ್ಚನ್ನು ಲೆಕ್ಕ ಹಾಕಲಾಗುತ್ತದೆ. ಈ ಪ್ರಕ್ರಿಯೆ ಆನಂದದಾಯಕವಾಗಿದ್ದು, ಪ್ರೋಗ್ರಾಮಿಂಗ್‌ನ್ನು ಹೇಗೆ ಬಳಸಬಹುದು ಎಂಬುದನ್ನು ಜನರಿಗೆ ಸುಲಭವಾಗಿ ತಲುಪಿಸುತ್ತದೆ

show more

Share/Embed