Tanner  Smith

Tanner Smith

1626184320

The Slice Type - Rust

Chapter 4.3

#rust #slice

The Slice Type - Rust
Tanner  Smith

Tanner Smith

1626184320

The Slice Type - Rust

Chapter 4.3

#rust #slice

The Slice Type - Rust
Trycia  Hintz

Trycia Hintz

1626240000

Learn Rust Together: Slices - Part 4

Fourth episode in a series where we dive into The Rust Programming language! We are following a book of the same name (sometimes called “The Book”) which can be found here https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbDU5cFk1Q1YzSXFuUlpuTlh0aTYwRlFZV2l5UXxBQ3Jtc0treTNsS09Fak5VOUYzTWg2UUdyWEpwQ2g2VGtndnRGaHR2ekI0aG1CcmctU3M4TTlOS0JZeE9ZaEdvbHlXOGEtdzVxcm5DVUxfd1VEQzh1RjZOOHlHTVl0eG9CWkxvNi1CNmhIRFYwdXdrQ1F1OGRhYw%3D%3D&q=https%3A%2F%2Fdoc.rust-lang.org%2Fbook%2Ftitle-page.html&v=x4P7UGk-3wo

This episode goes through the last section in chapter 4 as well as some practice programs. We write a temperature converter, and a program to compute the nth fibonacci number
– Watch live on Tuesday nights from 9pm - 11pm Eastern at https://twitch.tv/tommcgurl

#rust #slices #rust programming

Learn Rust Together: Slices - Part 4
Arvel  Parker

Arvel Parker

1593156510

Basic Data Types in Python | Python Web Development For Beginners

At the end of 2019, Python is one of the fastest-growing programming languages. More than 10% of developers have opted for Python development.

In the programming world, Data types play an important role. Each Variable is stored in different data types and responsible for various functions. Python had two different objects, and They are mutable and immutable objects.

Table of Contents  hide

I Mutable objects

II Immutable objects

III Built-in data types in Python

Mutable objects

The Size and declared value and its sequence of the object can able to be modified called mutable objects.

Mutable Data Types are list, dict, set, byte array

Immutable objects

The Size and declared value and its sequence of the object can able to be modified.

Immutable data types are int, float, complex, String, tuples, bytes, and frozen sets.

id() and type() is used to know the Identity and data type of the object

a**=25+**85j

type**(a)**

output**:<class’complex’>**

b**={1:10,2:“Pinky”****}**

id**(b)**

output**:**238989244168

Built-in data types in Python

a**=str(“Hello python world”)****#str**

b**=int(18)****#int**

c**=float(20482.5)****#float**

d**=complex(5+85j)****#complex**

e**=list((“python”,“fast”,“growing”,“in”,2018))****#list**

f**=tuple((“python”,“easy”,“learning”))****#tuple**

g**=range(10)****#range**

h**=dict(name=“Vidu”,age=36)****#dict**

i**=set((“python”,“fast”,“growing”,“in”,2018))****#set**

j**=frozenset((“python”,“fast”,“growing”,“in”,2018))****#frozenset**

k**=bool(18)****#bool**

l**=bytes(8)****#bytes**

m**=bytearray(8)****#bytearray**

n**=memoryview(bytes(18))****#memoryview**

Numbers (int,Float,Complex)

Numbers are stored in numeric Types. when a number is assigned to a variable, Python creates Number objects.

#signed interger

age**=**18

print**(age)**

Output**:**18

Python supports 3 types of numeric data.

int (signed integers like 20, 2, 225, etc.)

float (float is used to store floating-point numbers like 9.8, 3.1444, 89.52, etc.)

complex (complex numbers like 8.94j, 4.0 + 7.3j, etc.)

A complex number contains an ordered pair, i.e., a + ib where a and b denote the real and imaginary parts respectively).

String

The string can be represented as the sequence of characters in the quotation marks. In python, to define strings we can use single, double, or triple quotes.

# String Handling

‘Hello Python’

#single (') Quoted String

“Hello Python”

# Double (") Quoted String

“”“Hello Python”“”

‘’‘Hello Python’‘’

# triple (‘’') (“”") Quoted String

In python, string handling is a straightforward task, and python provides various built-in functions and operators for representing strings.

The operator “+” is used to concatenate strings and “*” is used to repeat the string.

“Hello”+“python”

output**:****‘Hello python’**

"python "*****2

'Output : Python python ’

#python web development #data types in python #list of all python data types #python data types #python datatypes #python types #python variable type

Basic Data Types in Python | Python Web Development For Beginners
Lydia  Kessler

Lydia Kessler

1626230820

ULTIMATE Rust Lang Tutorial! - Generic Types

The ultimate Rust lang tutorial. Follow along as we go through the Rust lang book chapter by chapter.

📝 Get notified when the Rust Cheatsheet comes out: https://letsgetrusty.com/cheatsheet

The Rust book: https://doc.rust-lang.org/stable/book/​

0:00 Intro
0:24 Extracting Functions
3:26 Generic Function Arguments
5:50 Generics in Struct Definitions
7:44 Generics in Enum Definitions
8:29 Generics in Method Definitions
14:01 Performance Impact
14:55 Outro

#letsgetrusty​ #rust​lang #tutorial

#rust #rust lang #generic types

ULTIMATE Rust Lang Tutorial! - Generic Types
Lydia  Kessler

Lydia Kessler

1626318000

ULTIMATE Rust Lang Tutorial! - Publishing a Rust Crate

The ultimate Rust lang tutorial. Follow along as we go through the Rust lang book chapter by chapter.

📝Get the FREE Rust Cheatsheet: https://letsgetrusty.com/cheatsheet

The Rust book: https://doc.rust-lang.org/stable/book/​​

Chapters:
0:00​ Intro
0:43 Release Profiles
3:00 Documentation Comments
4:32 Commonly Used Sections
5:04 Documentation Comments as Tests
5:50 Commenting Contained Items
6:29 Exporting a Public API
8:44 Setting up Creates.io Account
9:54 Adding Metadata to a New Create
12:14 Publishing to Crates.io
12:49 Removing Version from Crates.io
13:37 Outro

#letsgetrusty​​ #rust​lang​ #tutorial

#rust #rust lang #rust crate

ULTIMATE Rust Lang Tutorial! - Publishing a Rust Crate