ASCI Logo
ASCI
Programs
Practice DSA
Degrees & Careers
Pricing
Log inGet Started

Quick Navigation & Search

Search curriculum tracks, DSA problems, systems theory and tools...

golang microservices

Curriculum Index

Current LevelInitiate
0/ 500 XP
Gravit Certificate:
100% Required
  • 1.1 Implicit Interface Satisfaction
•
1
2
3
4
5
6
7
8
9
10
Module 1: Idiomatic Go & Type System•Lesson 1

1.1 Implicit Interface Satisfaction

### Duck Typing with Static Safety
In Go, a type implements an interface simply by implementing its methods. There is no explicit implements keyword.
Python 3.11
•
Interactive Challenge
+70 XP
Challenge Objective

Call interface method and print 'SPOKE: GOPHER'.

solution.py
UTF-84 SpacesAuto-saved
cpython3.11:~/workspace
CPython 3.11.8 (WASM)
$python3 -u solution.py
Click "Compile & Run" (or press Ctrl + Enter) to compile AST, verify bytecode, and execute the solution.