u/Maleficent_Stuff3208

what is wrong with this code

my teacher told us to write a code which print multiplication table of any number but it should Allow strings too and if string is put it shouldn't giver error i thought of this

a = input("enter any number ")
print(f"multiplication table of {a} is ")

if a == int:
    for i in range(1,11):
        print(f"int{a}X{i} = int{a}*i ")
else:
    print("please put a appropriate function ")

but it is only printing else like even if i put a integer it still run else one why and what is wrong here

reddit.com
u/Maleficent_Stuff3208 — 17 days ago

WHAT am i doing wrong here

i am trying that when i put key it give me the value but it is acting weird

x = {'name':'mohan','age':'24', 'job':'it professional'}
y = input("what info do you need__")
if y==(x.keys):
    print(x.values(y))
else:
    print("no such info available")

and this is what it gives 
what info do you need__name
name
no such info available
reddit.com
u/Maleficent_Stuff3208 — 20 days ago

stuck in python don't know what to do next

I have learned a bit of python earlier but feeling lost i have learned loops, function, tuple and currently set i am trying to make smth from what i have learned i have made basic calculator using if else and a code which is like who will be the millionare type using loop and very small one too but it feels insufficient . Plus watching people saying dsa and all is also confusing . SO IN SHOT I NEED HELP ON WHAT DO I DO NEXT SHOULD I DO NEXT PLUS IF YOU GUYS HAVE SOME PROJECT THAT I CAN MAKE USING WHAT I HAVE LEARNED I WILL BE GREATFUL FOR THAT

reddit.com
u/Maleficent_Stuff3208 — 22 days ago