Skip to content

levintech/HackInScience

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Python exercises on HackInScience


Python - Basics

# Title Solution
01 Hello World Source
02 Print 42 Source
03 Number of seconds in a year Source
04 Using operators Source
05 Characters counting Source
06 Fix the indentation Source
07 Square numbers Source
08 Powers of two Source
09 Import Source
10 Comparisons Source
11 Counting Words Source
12 First function Source
13 Print even numbers Source
14 Sum of even numbers Source
15 Multiples of 3 and 5 Source
16 Temperatures Source
17 Print every two letters pairs Source
18 Print every pair of distinct letters Source

Python - Training

# Title Solution
01 Distance Source
02 Check if a number is prime Source
03 Sum of every prime number below n Source
04 Print every prime numbers in a range Source
05 Next prime Source
06 The Fibonacci sequence Source
07 Exceptions Source
08 Display the date and time Source
09 Print the content of a file Source
10 Pernicious numbers Source
11 Product of iterable Source
12 Count the lower 'e' in the 'words' file Source
13 Is divisible by ? Source
14 Frequency of letters in a file Source
15 Doing HTTP requests Source
16 Largest product in a series Source
17 Lambda expressions Source
18 Longest Collatz sequence Source
19 Largest product in a grid Source
20 CSV and Python Source
21 Pascal's triangle Source

Python - Realist

# Title Solution
01 Longest word Source
02 Print sorbet flavors Source
03 Sets of love Source
04 Sort students Source
05 Reverse Roman Numerals Source
06 Select students Source
07 Friday the 13th Source
08 The missing card Source
09 Playing with anagrams Source
10 Currency Source
11 Flatten lists Source
12 Perfect deck shuffle Source
13 Hearts emojis Source
14 Text framing Source
15 Draw N Squares Source
16 Student class Source
17 Print battery charge Source
18 Side by side Source
19 Format your output Source
20 Roman Numerals Source
21 Caesar Cypher Source
22 Break a safe Source
23 Password Generator Source
24 bencode, bdecode Source
25 Restaurant menu Source
26 Py Master Mind Source
27 Elementary cellular automation Source
28 Temperature class Source
29 Sequence Mining Source
30 Change for 42 Source
31 IRC logs as CSV Source

Python - Command Line

# Title Solution
01 Print parameters Source
02 Print the first parameter Source
03 Simple adder Source
04 Calculator Source
05 Fir tree Source

Python and Numpy

# Title Solution
01 Abelian sandpiles Source
02 Make your own 2048 in Python! Source
03 Dirichlet solver Source