mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 07:06:20 +01:00
added extra examples
This commit is contained in:
@@ -19,4 +19,6 @@ print("\n") #feed a new line
|
||||
print("\t tabbed in")
|
||||
#you can specify a variable into the string as well!
|
||||
print("hello world: " + str(machine.rng()) + " random number" )
|
||||
#or use format
|
||||
print("hello world: {} {}".format(machine.rng(), " random number"))
|
||||
```
|
||||
Reference in New Issue
Block a user