Learn Selenium Python For Absolute Beginners Tutorial 17 (For Loops)

preview_player
Показать описание
In part seventeen, Tim details the importance of FOR-LOOPS in Python.

He discusses how to use them it iterate through variables, strings, tuples, and dictionaries.

He also gives an example of how to use the break keyword using a for-loop in addition to the if-statement within the same code block.

Enjoy!

Check out TestDemy's FREE Course: How To Get Started In Software Testing With No Experience:

Рекомендации по теме
Комментарии
Автор

Hey, I am just here to let you know. That I learned for loop from you on 23-06-2022 and 1 year from then. I feel confident in python now. Thank you so much for making this video. I am very grateful.

sahilchaudhary
Автор

why do we put dl_numbers without quotes?

busurkind
Автор

hey man,

Really nice explanation,

can u help me with this code,


for i, heart in enumerate(hearts):
print('{}/{}'.format(i, len(hearts)))
heart.click()
time.sleep(2)

on a webpage, i'm trying to click all the heart icons using this loop but after click first heart it says
for i, heart in enumerate(hearts):
TypeError: 'NoneType' object is not iterable error

rupadhyay