Skip to main content

Command Palette

Search for a command to run...

Day 34: 100 Days of Code

Python

Published
1 min readView as Markdown
Day 34: 100 Days of Code

Type Hints and Arrow:

We can specify the type of parameters as name: str, and also the type of fucntion out put as --> str. So that later if we forget the type of our parameter our IDE gives hints.

# Type hints and Arrows
def greetings(name: str) -> str:
    return "Hello" + name

greetings(123)

Screen Shot 2022-03-05 at 1.42.15 PM.png

Quizzler App

Screen Shot 2022-03-05 at 12.55.19 PM.png