Skip to content

Instantly share code, notes, and snippets.

View moulik-source's full-sized avatar
🍩
Do`h

heyheykids moulik-source

🍩
Do`h
View GitHub Profile
@moulik-source
moulik-source / Hello world
Last active October 1, 2021 16:53
Hello world python
#printing hello world in python
print("Hello world")
print('Hello world')
#it's wrong 👇🏽
print("Hello world')
print('Hello world")
@moulik-source
moulik-source / hello world in row
Created October 2, 2021 14:21
hello world in row
print("Hello world")
print("Hello world")
print("Hello world")
@moulik-source
moulik-source / hello world \n
Created October 2, 2021 14:25
hello world \n
print("Hello world\nHello world\nHello world")
@moulik-source
moulik-source / \t Hello world
Created October 2, 2021 14:31
\t Hello world
print("Hello\tworld\tHello\tworld")
@moulik-source
moulik-source / leaving spaces in string
Created October 2, 2021 15:21
leaving spaces in string
#adding two words in a string 👇🏽
print("Hello" + "World")
#to leave gap between two words
print("Hello" + " World")
#Found the gap ☝
@moulik-source
moulik-source / debug this
Created October 3, 2021 08:54
debug this
#Fix the code below 👇
print(Day 1 - String Manipulation")
print("String Concatenation is done with the "+" sign.")
print('e.g. print("Hello " + "world")')
print(("New lines can be created with a backslash and n.")
@moulik-source
moulik-source / fix code
Created October 3, 2021 09:02
fix code
#Fix the code below 👇
#string is missing at the first
print(Day 1 - String Manipulation")
#thi code seems good 💖
print("String Concatenation is done with the "+" sign.")
#Here the indent is moven forward
print('e.g. print("Hello " + "world")')
@moulik-source
moulik-source / Fixed code
Created October 3, 2021 09:06
Fixed code
#Fixed the code below 👇
print("Day 1 - String Manipulation")
print("String Concatenation is done with the "+" sign.")
print('e.g. print("Hello " + "world")')
print(("New lines can be created with a backslash and n."))
@moulik-source
moulik-source / input function
Created October 3, 2021 14:34
input function
print("Hello " + input("What is your name")+"!")
print("Iam " + input("How old are you") + "🆗")
@moulik-source
moulik-source / input function example
Created October 3, 2021 15:49
input function example
num1 = input("Enter the value: ")
num2= input("Enter the value: ")
sum = float(num1) + float(num2)
print("The sum of {0} and {1} is {2}".format(num1, num2, sum))