Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
62 lines (62 loc) · 2.56 KB

File metadata and controls

62 lines (62 loc) · 2.56 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Real Python - sample code challenge</title>
<!-- Styles -->
<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="assets/main.css">
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="https://realpython.com">Real Python</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="https://realpython.com/blog/python/code-evaluation-with-aws-lambda-and-api-gateway/">Back to the blog post</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Page Content -->
<div class="container">
<div class="row">
<div class="col-lg-6">
<h1 class="mt-5">Sample Code Challenge!</h1>
<p class="lead">Powered by AWS Lambda, API Gateway, and Python 3.</p>
<hr><br>
<h4>Exercise 1</h4>
<p>Define a function called <code>sum</code> that takes two integers as arguments and returns their sum.</p>
<form>
<div class="form-group">
<div id="editor" class="ace-editor"># Enter your code here.</div>
</div>
<button type="submit" class="btn btn-primary">Run Code</button>
</form>
<h5 class="answer text-danger"></h5>
</div>
</div>
</div>
<!-- Footer -->
<footer class="footer">
<div class="container">
<small class="text-muted">
<span>© Copyright 2017 <a href="http://realpython.com">Real Python</a></span>
</small>
</div>
</footer>
<!-- Scripts -->
<script src="assets/vendor/jquery/jquery.min.js"></script>
<script src="assets/vendor/popper/popper.min.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.8/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/main.js"></script>
</body>
</html>
Morty Proxy This is a proxified and sanitized view of the page, visit original site.