avatarThe Sandbox

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

1499

Abstract

s="hljs-function"><span class="hljs-title">greet</span><span class="hljs-params">()</span></span></pre></div><p id="c080">When you run the above code, it will output “Hello, World!” to the console.</p><h2 id="cd50">Passing Arguments to a Function</h2><p id="95b0">Functions can take input in the form of arguments or parameters. You can define a function to accept one or more parameters, and then pass values to it when calling the function.</p><div id="fc34"><pre><span class="hljs-variable">def</span> <span class="hljs-function"><span class="hljs-title">greet</span>(<span class="hljs-variable">name</span>): <span class="hljs-title">print</span>(<span class="hljs-variable">f</span><span class="hljs-string">"Hello, {name}!"</span>)</span>

<span class="hljs-function"><span class="hljs-title">greet</span>(<span class="hljs-string">"Alice"</span>)</span></pre></div><p id="958e">In this example, the function <code>greet</code> takes a parameter <code>name</code>, and when the function is called with <code>greet("Alice")</code>, it will print "Hello, Alice!" to the console.</p><h2 id="5cfb">Returning Data from a Function</h2><p id="146f">In addition to accepting input, functions can also return data using the <code>return</code> statement. This allows the function to provide a result back to the calling code.</p><div id="4645"><pre>def add_numbers(<span class="hljs-keyword">a</span>, b): <span class="hljs-literal">return</span> <span class="hljs-keyword">a</span> + b

<span c

Options

lass="hljs-built_in">result</span> = add_numbers(<span class="hljs-number">3</span>, <span class="hljs-number">5</span>) print(<span class="hljs-built_in">result</span>) <span class="hljs-comment"># Output: 8</span></pre></div><p id="d5d5">Here, the <code>add_numbers</code> function returns the sum of <code>a</code> and <code>b</code>, and the calling code assigns the result to a variable and prints it.</p><p id="0313">These are the fundamental concepts of defining and calling functions in Python. By using functions, you can modularize your code and make it more organized and easier to maintain.</p><p id="8778">In addition to the basics, Python supports various advanced concepts related to functions such as default parameters, variable-length argument lists, function annotations, and more. These concepts provide flexibility and power when working with functions in Python.</p><div id="6a9c" class="link-block"> <a href="https://readmedium.com/python-vs-javascript-a-guide-for-python-developers-464796166675"> <div> <div> <h2>Python vs. JavaScript- A Guide for Python Developers</h2> <div><h3>undefined</h3></div> <div><p>undefined</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*4kSdlOKEQqdYroo_Bdg_dA.jpeg)"></div> </div> </div> </a> </div></article></body>

The Holly Voxels Art Drop

The Sandbox Marketplace is presenting a new NFT Collection, but this one is particular in more ways than one. Starting June 10th at 1 PM UTC, Holly Voxels is presenting her first collection of one-of-a-kind NFTs, in that each of the ten NFTs that she is dropping is a handcrafted painting made with thousands of voxels to recreate a beloved classical painting of which there is only one in existence. Enter Holly’s world and learn the story behind these NFTs!

See Holly’s collection here: https://www.sandbox.game/en/shop/?collections=15

Who is Holly Voxels?

Holly

I’ve been an artist and a gamer for decades, two things that I haven’t been able to combine until I found The Sandbox.

I grew up with a mom who knew the importance of technology but also taught me to respect the fine arts. One weekend we could be at a robotics show and the next at the symphony or a museum. It taught me to appreciate the past but look forward to the future.

What was your vision for this collection?

I’ve painted traditionally for more than twenty years and have studied the masters extensively. Being able to recreate them in voxels for The Sandbox is important to me because The Sandbox is an experience. These paintings won’t be locked away in someone’s wallet, they’ll be hung in a treasured spot in the metaverse. And hopefully, I’ll get a chance to visit them all!

Mona Lisa — 77w x 104h

Why mint only one of each piece?

It was important to me that these be a part of an experience and special for someone, which is why making them 1 of 1 edition made sense. I’m planning on doing more collections, and I would like to add some of my originals to the classical paintings, as well as sculptures. There really is no limit to the possibilities with VoxEdit and The Sandbox. Regardless of what I create, I think they will likely be 1 of 1 edition.

Lady with Ermine — 114w x 136h — — — — The Starry Night — 90w x 73h — — — — — The Kiss — 100w x 105h
Girl with a Pearl Earring — 90w x 104h— — — — Water Lilies — 136 w x 90h — — — — The Scream — 103w x 136h

See Holly’s collection here: https://www.sandbox.game/en/shop/?collections=15

Could you tell us more about your creative process?

It took me months to develop the process and each piece takes a significant time commitment. First, I make a custom color palette, typically with 32 colors, as with The Starry Night. Then I make a color map to give me an idea of where the colors will be placed, although this is subject to change while working. In VoxEdit, I create a canvas with the correct voxel dimensions for the piece. Then I translate the color map to the canvas by adding the voxels in the appropriate color. This is when voxels are added or taken away based on my interpretation of the piece. When I’m happy with it, I create a frame to give the painting depth. It seems tedious, but I actually find it relaxing.

Sunflowers — 87w x 110h — — — — — — — — — — — — — — — — — — — — — — — — — Vase with Poppies — 70w x 84h

What made you decide to create your NFTs with The Sandbox?

Although I’ve been gaming and creating for many years, I haven’t been able to connect all the things that I love until I found The Sandbox. I finally have a place to use all of my skills to create whatever I can imagine. And I can share it with a nurturing community in the metaverse. I can honestly say that The Sandbox has changed my perspective and the course of my life, and that’s why it’s the only place I call home in the metaverse.

A Sunday Afternoon on the Island of La Grande Jatte — 136w x 136h

You can find Holly’s entire collection live on our Marketplace. Don’t miss this opportunity to get your own unique NFT today!

Nft
Blockchain
Art
Gaming
Recommended from ReadMedium