Home

Introduce yourself and your blog

My Latest Posts

• • •

  • Star pattern maker by for loop and range 23/8/21
    print (“choose a no\n”)one = int(input())print(“select 1 or 0\n”)two = int(input())newin = bool(two)if newin == True :for i in range (1,one+1):for j in range(1,i+1):print(““,end = ” “) print() if newin…More
  • Number guessing game it was hard 22/8/21
    n = 18print(“please guess the no in 9 tries”)no_of_guess = 1while(no_of_guess < 10): guess = int(input(“please guess the no\n”)) if guess <= 16 : print(“your guess is wrong please in…More
  • Students attendance percentage calculator 20/8/21
    students = {“fahad” : 15 ,”arshu” : 10, “anzar” : 20 , “moiz” : 30}name = input(“what is your name”)name1 = (students[name])percent = (name1/30*100)if name1 < 15 :print(“very bad attendence…More
  • first project Code for dictionary small 20/8/21
    dict1 = {“knife” : “a sharp cutting tool”, “TV” : “Television”, “legs”: “body part”, “rain”:”water form the clouds”}pick1 = input(“pick a word:”) print(dict1[pick1]) #Here first i created a dictionary and…More

• • •