Posts
기록
Cancel

# 정규표현식(Regular Express)

1. Regular Express 1.1 연습용 문장 import re search_target = '''Luke Skywarker 02-123-4567 luke@daum.net 다스베이더 070-9999-9999 darth_vader@gmail.com 서울시 서초구 서초동 서초아파트 princess leia 010 2454 3457 leia@g...

# Tuples (Python 3)

URL : https://www.hackerrank.com/challenges/python-tuples/problem Task Given an integer, n, and n space-separated integers as input, create a tuple, t, of those n integers. Then com...

# sWAP cASE (Python 3)

URL : https://www.hackerrank.com/challenges/swap-case/problem You are given a string and your task is to swap cases. In other words, convert all lowercase letters to uppercase let...

# List (Python 3)

URL : https://www.hackerrank.com/challenges/python-lists/problem Consider a list (list = []). You can perform the following commands: insert i e: Insert integer e at position i. ...

# Itertools.combinations with replacement() (Python 3)

URL : https://www.hackerrank.com/challenges/itertools-combinations-with-replacement/problem This tool returns r length subsequences of elements from the input iterable allowing individ...

# Collections.Counter() (Python 3)

URL : https://www.hackerrank.com/challenges/collections-counter/problem A counter is a container that stores elements as dictionary keys, and their counts are stored as dictionary valu...

# Write a function (Python 3)

URL : https://www.hackerrank.com/challenges/write-a-function/problem An extra day is added to the calendar almost every four years as February 29, and the day is called a leap day...

# What's Your Name (Python 3)

URL : https://www.hackerrank.com/challenges/whats-your-name/problem You are given the firstname and lastname of a person on two different lines. Your task is to read them and print the...

# The Minion Game (Python 3)

URL : https://www.hackerrank.com/challenges/the-minion-game/problem Kevin and Stuart want to play the ‘The Minion Game’. Game Rules Both players are given the same...

# Text Wrap (Python 3)

URL : https://www.hackerrank.com/challenges/text-wrap/problem You are given a string s and width w. Your task is to wrap the string into a paragraph of width w. Input Forma...