Intro
1. Data Fundamentals
2. Array-Like Structures
3. Dictionaries
4. Sets
5.Queues
6. Stacks
7. Practice Using Data Structures in Python Applicatios
8. Glossaries
9. Conclusion
Intro
How to use CoderPad
How to Use GitHub Codespaces
1. Data Fundamentals
What is data ? /
data point
data types – numbers , letters , true/false
แบ่ง classify different pieces of data based on – their value
whole numbers -value ทุก whole number รห lower / upper limit
operation wise : +-*/ compare
python มี 4 primitive data types – int ,float , boolean , string
whole nubmer อยู่ใน int
find type of data – print(type(x))
data type ของ python ไม่ explicity c syntax เหมือนภาษาอื่น , เรียกว่า implicit
2. Array-Like Structures
3. Dictionaries
4. Sets
5.Queues
6. Stacks
7. Practice Using Data Structures in Python Applicatios
8. Glossaries
9. Conclusion
::: data type of what languges , is implicit
the concept of implicit data types in programming refers to situations where the data type of a variable is not explicitly declared, and the compiler or interpreter infers the type automatically from the context (such as the assigned value).
Here are common programming languages that support implicit typing, along with a short note:
🟢 Languages that support implicit data typing
| Language | Example | Notes |
|---|---|---|
| Python | x = 10 | Dynamically typed, inferred at runtime |
| JavaScript | let x = "hello" | Dynamically typed |
| TypeScript | let x = 5 | Supports both implicit and explicit typing |
| Go | x := 42 | Uses := for short variable declaration with type inference |
| Rust | let x = 3.14; | Type inferred, but can also be explicitly declared |
| Swift | var name = "John" | Strongly typed, with type inference |
| Kotlin | val age = 30 | Strongly typed, with inference |
| Scala | val name = "Alice" | Supports both styles |
| Haskell | x = 42 | Pure functional, types inferred by compiler |
| Dart | var x = 10; | Type inferred at compile time |
| Julia | x = "data" | Dynamically typed, types inferred at runtime |
| F# | let x = 3 | Type inference with option for explicit typing |
| Ruby | x = 5 | Dynamically typed, type inferred at runtime |
| Perl | $x = 10; | Dynamically typed |
| PHP | $x = "text"; | Dynamically typed |
🔴 Languages that require explicit type declarations (no implicit typing by default)
| Language | Example | Notes |
|---|---|---|
| C | int x = 5; | Must declare type |
| C++ | int x = 5; | Though auto enables some type inference |
| Java | int x = 10; | Java 10+ allows var, but otherwise explicit |
| C# | var x = 10; | Implicit type allowed using var, but still statically typed |
| Pascal | var x: Integer; | Requires type declaration |
✅ Summary
- Implicit typing is typical in dynamic or modern statically typed languages with type inference.
- Explicit typing is required in older or low-level statically typed languages.
