This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| scores = [54,67,48,99,27] | |
| for i, score in enumerate(scores, 1): | |
| print(i, score) | |
| """ | |
| 1 54 | |
| 2 67 | |
| 3 48 | |
| 4 99 | |
| 5 27 | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import usocket as socket | |
| #import socket | |
| def sendudp(host, port): | |
| address = ("127.0.0.1", 6969) | |
| data = b'hello udp' | |
| sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| ESPTest for ZMTP + ZRE + ZOCP | |
| Original author: Ronald Hof <ronald@k-n-p.org> | |
| license: MPLv2 | |
| */ | |
| #include <ESP8266WiFi.h> | |
| #include <WiFiUdp.h> | |
| #include <string.h> |