What is a String? (C# vs Python)

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ส.ค. 2024

ความคิดเห็น • 44

  • @suryanshsinha8433
    @suryanshsinha8433 5 ปีที่แล้ว +21

    Well, since there are no comments here, I get my chance to thank you. I already know C# and wanted to learn python so C# code kinda acts like a reference. Thanks for making this and I hope you upload more in this playlist soon.

  • @twistymisty3974
    @twistymisty3974 4 ปีที่แล้ว +2

    NOW THIS IS A FUCKING TUTORIAL
    actually giving me knowledge unlike every other TH-camr

  • @emilyentropie
    @emilyentropie 5 ปีที่แล้ว +9

    I loved how you got hyped when explaining interpolated strings! Made me excited too c:

  • @aunegaming2132
    @aunegaming2132 2 ปีที่แล้ว

    i am going to learn to code in scool next year, you are rlly helping me out bc i wanted to start a little before the others so thx. :)

  • @spaceearthandtech3247
    @spaceearthandtech3247 5 ปีที่แล้ว +21

    Leaving off where I left off don't mind me
    9:49

  • @Majnik_
    @Majnik_ 5 ปีที่แล้ว

    At the end of the video when you are showing what's the proper way of finding out if string contains something it printed "True" because you were printing the bool "does" which was True because of the line 16 and not because of the lines 19 and 20. Great video and series anyways. You are one of the people who encouraged me to study computer science. Thank you for your content!

  • @newbtechhelp
    @newbtechhelp ปีที่แล้ว

    These are really helpful. Are you going to do more complex tutorials in a similar format in the future? I love the comparison between two languages.

  • @yazanalhariri221
    @yazanalhariri221 2 ปีที่แล้ว

    I have to say, you are done very well, and you gave a lot of information more than some other people .. I hope you to keep going like that ... Many thanks to you 🎆🎆

  • @zaboringo4624
    @zaboringo4624 5 ปีที่แล้ว +1

    No dislikes! First time seeing that.

  • @AlFredo-sx2yy
    @AlFredo-sx2yy 2 ปีที่แล้ว

    7:45 has nothing to do with it being an interpreted language. You can make a compiled language and make it so that the "" and '' operators to do the same thing. Its just that most languages dont do that simply because most people prefer to have a different operator for strings and characters. Compiled languages can make automatic type deductions, that's not limited to interpreted languages, so you could very well have it so that "" generates a string, '' generates a char, or you could have it so that "" and '' both generate strings when they contain multiple characters or chars when they contain a single character, etc etc... you can do anything, it has nothing to do with it being an interpreted or compiled language. The prime example here is C++ with the default "" operator generating a char const pointer with nul terminator, but you can generate a custom operator that could generate basically anything else, for example you could make ""_x and make it generate a string with no nul terminator that contains the contents specified inside of ""_x. Or you could use the ''_x operator for the same purpose if you want to use ''. The thing is that you need to add something else at the end to differentiate it from the standard operators, but still, that proves you could technically make a compiled language that has that same feature as python.
    Sorry for the long comment, its just that i felt like i had to prove my statement somehow in case someone else wanted to give this info a try, thus leading me to making such a long and absurdly detailed comment for such a small thing lol...

  • @thattophatguy8421
    @thattophatguy8421 4 ปีที่แล้ว

    So much things to learn!

  • @HoppiHopp
    @HoppiHopp 5 ปีที่แล้ว

    Print(name) after the split shows the variable formatted as an array and not two individual strings.

  • @richardrimoli
    @richardrimoli 5 ปีที่แล้ว +5

    YOU HAVE TO SAVE TO PRINT ON PHYTON??? That's what i've been having troble then!

    • @diamondminer81
      @diamondminer81 5 ปีที่แล้ว +1

      bruh

    • @richardrimoli
      @richardrimoli 5 ปีที่แล้ว +2

      @@diamondminer81 I'm a beginner. And on C# you don't have to do so, you just run it. I really had no idea.

    • @AlFredo-sx2yy
      @AlFredo-sx2yy 2 ปีที่แล้ว

      @@richardrimoli its not a language specific thing tho... thats because of the IDE used.

  • @uliveulearnandregret
    @uliveulearnandregret 5 ปีที่แล้ว

    if i am correct interpolated is how so many multiplayer games get good user input

  • @uliveulearnandregret
    @uliveulearnandregret 5 ปีที่แล้ว

    how do you add colors?? like gta 5 had colored objectives so you know what to do

  • @samratpathak8731
    @samratpathak8731 4 ปีที่แล้ว

    Man really appreciate ur learning program but at the last it didnt print true cos of the if statement, but it did cos you had 'does' inputed as true in the contain line

  • @JOZZEF12
    @JOZZEF12 5 ปีที่แล้ว

    Man I love you !

  • @3rick512
    @3rick512 5 ปีที่แล้ว +1

    I wonder if TY$ or A$ap Rocky were thinking of interpolated strings when they came up with their names....

  • @noasjostrand
    @noasjostrand 4 ปีที่แล้ว

    TH-cam never showes me your uploads even though I'm subscribed :)))))

  • @Charduza
    @Charduza ปีที่แล้ว

    5:33

  • @kevinbones8599
    @kevinbones8599 3 ปีที่แล้ว

    7:32

  • @clementsiow176
    @clementsiow176 5 ปีที่แล้ว +1

    does not work

  • @axego3274
    @axego3274 4 ปีที่แล้ว

    Hi, Thanks for the course. I'm finding it's really good and helpful as a refresher. I have a question. In your Visual Studio IDE in the 'What is a String', when you create a new console app project, you have the following layout:
    using System;
    using System.Collections.Generic;
    using System.Ling;
    using System.Text;
    using System.Threading.Tasks;
    get
    namespace Strings
    {
    class program
    {
    static void Main(string[] args)
    {
    string a = "hello";
    }
    }
    }
    In my Visual Studio (v19 Community version) when I create a new console app I get the following layout:
    // ConsoleApplication1.cpp : This file contains the 'main' function. Program execution begins and ends there.
    //
    #include
    int main()
    {
    bool doit = true;
    std::cout Start Without Debugging menu
    // Debug program: F5 or Debug > Start Debugging menu
    // Tips for Getting Started:
    // 1. Use the Solution Explorer window to add/manage files
    // 2. Use the Team Explorer window to connect to source control
    // 3. Use the Output window to see build output and other messages
    // 4. Use the Error List window to view errors
    // 5. Go to Project > Add New Item to create new code files, or Project > Add Existing Item to add existing code files to the project
    // 6. In the future, to open this project again, go to File > Open > Project and select the .sln file
    Why are these different?
    Thanks.
    Jan

  • @Sparagas
    @Sparagas 3 ปีที่แล้ว

    you can actually multiplicate in Python

  • @buddyroach
    @buddyroach 3 ปีที่แล้ว

    teaching 2 languages at once. damn.

  • @jasonubrown
    @jasonubrown 5 ปีที่แล้ว

    New to coding/ programming. Is there an opposite to a string? isn't everything a string?

    • @CheugyJesus
      @CheugyJesus 5 ปีที่แล้ว +1

      Jason Brown not really. A string is one type of object, it’s just a way data can stored and used to interact with the user. There are many data types that are not strings and there are things you can do with them that you can’t do with strings and vice versa. For instance you have ints, which represent integers and floats/doubles which represents decimal numbers. Now these you can perform mathematical operations on those but you cannot perform math on a string. If you do 1 + 2 where they are ints, it will actually add those numbers and return 3, but if you do “1” + “2” where they are strings, you will perform what is called concatenation, basically meaning you will stick those strings together and return “12”. Also, in a strongly typed language like c#, when you declare variables and objects you have to define their data type and ONLY the correct data type can be stored there.

  • @jacobq.s1338
    @jacobq.s1338 5 ปีที่แล้ว

    Haha python is so much easier😂
    Great video man👍💪

    • @uliveulearnandregret
      @uliveulearnandregret 5 ปีที่แล้ว

      u can't use it for gaming code

    • @spaceearthandtech3247
      @spaceearthandtech3247 5 ปีที่แล้ว

      Ya u can't just alot harder,

    • @diamondminer81
      @diamondminer81 5 ปีที่แล้ว

      Python isn't as good for OOP. Really only good for short scripts.

    • @dynamite2275
      @dynamite2275 5 ปีที่แล้ว

      yea but they are used for 2 very different things

  • @technofeeliak
    @technofeeliak 4 ปีที่แล้ว

    Method... the rapper?

  • @clementsiow176
    @clementsiow176 5 ปีที่แล้ว

    python does not work