Skip to content
View undefinito's full-sized avatar
🍙
🍙

Block or report undefinito

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. From http://www.practicepython.org/e... From http://www.practicepython.org/exercise/2014/03/12/06-string-lists.html
    1
    st = input('String pls: ')
    2
    
                  
    3
    is_pal = 1
    4
    s_len = len(st)
    5
    half_len = int(s_len/2)
  2. From http://www.practicepython.org/e... From http://www.practicepython.org/exercise/2014/03/19/07-list-comprehensions.html
    1
    a = [1,4,9,16,25,36,49,64,82,100]
    2
    
                  
    3
    new_list = [val for val in a if (a%2) == 0]
    4
    print(new_list)
  3. From: http://www.practicepython.org/... From: http://www.practicepython.org/exercise/2014/02/05/02-odd-or-even.html
    1
    num = int(input('Number pls: '))
    2
    
                  
    3
    if (num%4) == 0:
    4
      odd_even = 'divisible by 4!'
    5
    elif (num%2) == 0:
  4. From: http://www.practicepython.org/... From: http://www.practicepython.org/exercise/2014/01/29/01-character-input.html
    1
    import datetime
    2
    
                  
    3
    now = datetime.datetime.now()
    4
    
                  
    5
    name = input('What is your name? ')
  5. From http://www.practicepython.org/e... From http://www.practicepython.org/exercise/2014/02/26/04-divisors.html
    1
    num = 0
    2
    while num < 1:
    3
      num = int(input('Num: '))
    4
    
                  
    5
    divs = []
  6. From http://www.practicepython.org/e... From http://www.practicepython.org/exercise/2014/02/15/03-list-less-than-ten.html
    1
    import random
    2
    
                  
    3
    a = []
    4
    for x in range(0,100):
    5
      a.append(random.randint(1,10))