Giter Club home page Giter Club logo

epai3_session6's Introduction

EPAI3_Session6- First Class Functions

Write a single expression that includes lambda, zip, and map functions to select create 52 cards in a deck - 50 pts Write a normal function without using lambda, zip, and map function to create 52 cards in a deck - 50 pts Write a function that, when given 2 sets of 3 or 4 or 5 cards (1 game can only have 3 cards with each player or 4 cards or 5 cards per player) (1 deck of cards only), (2 players only), can identify who won the game of poker (Links to an external site.)! - 100 pts Basics (applicable to 2/3 above):

The proper readme file that explains all the tests that you are writing - 50 (if not there then 0) Docstrings are a must, and it must mention what the function is doing (2, 3) - 25pts Write annotations for 3 - 25 pts Basics tests to ensure your code is correct (20+ combination tests (counted as 1 test) in 3, check 1/2 with a manual list of 52 cards. Overall 20 tests at minimum) - 200 pts Import your python file/functions to a notebook, and then SHOW all the functions working as intended. This notebook file is the first file that we'll check to see your results. So if this file is missing, or a particular function/feature is not mentioned here, you'll lose marks.

deck_using_Normal_func:

This function takes in suits, values and deck as input and returns the combined deck using loops as backend

generate_deck_lambda_map_zip

This function is takes values from suits and value list and retrun the combined deck usng loops as backend

fib_check

This function tells given given number the fibonacci number or not comparing with pre defined fibonacci list or dict

even_odd:

check the function add 2 iterables a and b such that a is even and b is odd

strip_vowel_str:

function which strips every vowel from a string provided

relu_activation:

Function which acts like a relu function for a 1D array

sigmoid_activation

Function which act like sigmoid function for a 1D array

shift_5_char:

Function which takes a small character string and shifts all characters by 5 (handle boundary conditions) tsai>>yxfn

profane_filter:

A function contain list comprehension expression that takes a ~200-word paragraph, and checks whether it has any of the swear words mentioned in https://github.com/RobertJGabriel/Google-profanity-words/blob/master/list.txt

add_even_num:

Function which uses reduce function to add only even numbers in a list

big_char_str

Function uses reduce to find big ascii character in string

add_third_num

Function which adds every third number from the list

num_plate:

Function Using randint, random.choice and list comprehensions, an expression that generates 15 random KADDAADDDD number plates, where KA is fixed, D stands for a digit, and A stands for Capital alphabets. 10<<DD<<99 & 1000<<DDDD<<9999

epai3_session6's People

Contributors

aditya701 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.