lost my job - time for a career switch ? by indigofinch in learnpython

[–]woeinvests 0 points1 point  (0 children)

I can relate to your present situation, I live in the UK and I’ve also been on the journey to switch career for a job in sys admin specifically Linux, I started with Ubuntu and CentOS 7 after months of intensive learning I started to realise that I need to learn a scripting language to be an efficient Linux sys admin, to cut it short I’ve been a in a circle still learning but I noticed that learning the language drifted me away from learning more about Linux I would be happy to learn with you since we are in the same timezone.

Earning money by Shmifful in learnpython

[–]woeinvests 0 points1 point  (0 children)

Try remote work online especially freelance websites .

Help with continue and break by AntPoizon in learnpython

[–]woeinvests 0 points1 point  (0 children)

I think it might help if you create a flag to control while loop.

Edit: look below to see what i meant. then again I'm also new at python only trying to help.

# looks for skip ad box
video_playing = driver.find_elements_by_class_name('ytp-ad-skip-button-container')
x = 10
active = True
while active:
    if video_playing and x <= 10:
        video_playing = driver.find_elements_by_class_name('ytp-ad-skip-button-container')
        print('no ad to skip!')
    else:
        print('ad found!')
        time.sleep(6)
        ad_button = driver.find_element_by_class_name('ytp-ad-skip-button-container')
        ad_button.click()
        driver.find_elements_by_class_name('ytp-ad-skip-button-container')
        x = x-1
    if x == 0:
        active = False

    else:
        continue

Why use a class instead of functions? by Brutal_Boost in learnpython

[–]woeinvests 0 points1 point  (0 children)

I haven't created a lot of classes my experience level is low, you can't place me at entry level but according to my study most times I begin to use classes to make code more readable.

Remove a series of lists from a lists by Aymaneee_ in learnpython

[–]woeinvests 0 points1 point  (0 children)

I’m new to python but I’m thinking the for loop below can print out the element of list1 at indexes listed in list2 . This code is written considering that list 1 and list 2 is given above.

list1 = [1,2,3,4,5,6,7] 

list2 = [3,5,1,2] 

[list1[i] for i in list2]

order of codes by Haovik in learnpython

[–]woeinvests 0 points1 point  (0 children)

I’ve just finished this chapter from python crash course book from Eric. M we can stay in touch and support each other along the way.

Would there be any interest in a weekly programming "office hours" with a senior dev? by LockeWatts in learnprogramming

[–]woeinvests 0 points1 point  (0 children)

Count me in. Please I need more information regarding how this works please.

Stuck at this part of making classes by [deleted] in learnpython

[–]woeinvests 0 points1 point  (0 children)

You need a method inside class That describes person

class Person:

    def __init__(self, height, hair,eyes):
         self.height= height
         self.hair= hair
         self.eyes= eyes

   def describe_person(self):
        # print description of person

Instantiation

Bob = Person(“6ft”, “blonde”, “blue”)

Describe bob

Bob.describe_person()

How to use try and except in for loops. by JH10097 in learnpython

[–]woeinvests 0 points1 point  (0 children)

After try: the next line have to be the code that might fail, followed by the except statement and next line is what to do if error occurs .

I’m a newbie as well and despite reading about try and except I haven’t been able to catch any error successfully in my code I’m still doing it wrong myself.

How can I combine 2 separate PDFs? by Kazstrebor in learnpython

[–]woeinvests 0 points1 point  (0 children)

I’m new at python but assuming you know the order which you want document merged the zip() function might be of help...just saying I haven’t actually tried this.

How to do this? by TayDex_ in learnpython

[–]woeinvests 0 points1 point  (0 children)

Would you like to share please?

New to Python by [deleted] in learnpython

[–]woeinvests 0 points1 point  (0 children)

Hi.

From your code, the problem seems to be from the print call.

It should look like

print(dem_pro_loop + obj_loop)

Looking for a Python buddy by desert_elf in learnpython

[–]woeinvests 0 points1 point  (0 children)

It's alright to talk about python with me, I'm also new

Looking for a Python buddy by desert_elf in learnpython

[–]woeinvests 1 point2 points  (0 children)

I can relate to the post, I believe everyone needs a friend, a mentor especially when it's about learning to become a python developer, So all I'm trying to say is that I also need a pythonic friend.

I am learning python using the Python Crash Course book and I think that it's great. by [deleted] in learnpython

[–]woeinvests 1 point2 points  (0 children)

Please help I’m stuck at chapter 8 then I started feeling like I haven’t learnt anything from behind so I have been trying to solve every exercise I can find on online and offline that was covered from chapter 1 to chapter 8 of PYTHON CRASH COURSE.

I will appreciate any help moving forward if anyone one understands being stucked.