1 | Getting Started | Python for Complete Beginners

🔥 All Free Tutorials - # print print() print(“Hello World“) a = 7 b = 10 print(a, b) name = “Raghav“ print(name) print(“Name:“, name) print(“First line “) print(“Second line“) # comment # hash symbol # input # name = input(“Enter name: “) # print(name) # print(type(name)) # Variables a = 10 b = 1.1 a = 7 first_name = “Raghav“ # if, else, try # Literals # numeric, string, boolean # 10, 0, -10 name = “Python“ char = ’P’ a = True b = False # Strings name = “Raghav“ char = ’A’ multiline_string = “““ name: Raghav subject: Python job: Teacher “““ print(multiline_string) # Type Conversion # implicit # explicit num_int = 5 print(type(num_int)) num_float = 5.5 sum = num_int num_float print(sum) print(type(sum)) # int() # float() # str() a = ’77’ int ... #RaghavPal #Learn_Python_from_scratch #Master_the_basics_of_Python_programming #Create_your_first_Python_program #Understand_Python_syntax_and_semantic #Work_with_Python_variables_and_data_types 20230710 wFvPxmfw48s
Back to Top